Solved Calibration with touch and mouse not available
-
Hi all,
I used a touch screen with ts_lib compile in Qt and I find the example how to calibrate.
http://doc.qt.io/qt-4.8/qt-qws-mousecalibration-example.htmlIt works fine when only have touch screen.But in my project I need touh and mouse. So I set QWS_MOUSE_PROTO as
QWS_MOUSE_PROTO=auto:/dev/input/mice tslib:/dev/input/touchscreen0Now the mouse works fine. But when I calibrate agian the touch becomes error.
Any ideas?
-
@Wooshang said in Calibration with touch and mouse not available:
Hi all,
I used a touch screen with ts_lib compile in Qt and I find the example how to calibrate.
http://doc.qt.io/qt-4.8/qt-qws-mousecalibration-example.htmlIt works fine when only have touch screen.But in my project I need touh and mouse. So I set QWS_MOUSE_PROTO as
QWS_MOUSE_PROTO=auto:/dev/input/mice tslib:/dev/input/touchscreen0Now the mouse works fine. But when I calibrate agian the touch becomes error.
Any ideas?
It's my mistake. My touch driver register two handlders /dev/input/event0 and /dev/input/mouse0. So the Qt reports wrong coordinates.