PDA

View Full Version : qt tslib touchscreen y-axis reversed



gosk
5th September 2011, 17:13
Hi,

In my touch screen after calibration x-axis works perfectly. But y axis is reversed. When I move upwards the cursor goes downwards and vice versa. Is it related to qt , tslib or the driver? what should I do?

e8johan
6th September 2011, 08:26
Simply recalibrate your screen using ts_calibrate or the calibration example that came with Qt and you should be ok.

The axis is inverted in tslib, but tslib (usually) relies on a linear mapping between the physical touch screen readings and the pixel coordinates. In this transformation, it can invert the axis.

gosk
6th September 2011, 17:19
Hi e8johan,

But I already calibrated several times. But the problem doesn't resolve. I can't understand the linear mapping you are telling. Any way my ts.conf contains followings.

module raw_input
module variance delta=30
module dejitter delta=100

Thankx.