tias / xinput_calibrator

A generic touchscreen calibration program for X.Org
http://www.freedesktop.org/wiki/Software/xinput_calibrator
Other
136 stars 105 forks source link

Properly calibrate the input device #59

Open blaztinn opened 10 years ago

blaztinn commented 10 years ago

Current calibration didn't properly calibrate the input device if the display screen was rotated or if one of the axis was mirrored by the HW. Maybe it didn't work in other cases too, but this are the ones I know of. This patch fixes this problems by properly calibrating the input device on any possible click sequence, previous calibration and axis inversion (min-max switched).

First commit updates tester to test for all the possible sequences (before there was a missing click sequence where the y coordinate is changed first!)

The second commit updates the generic and evdev calibrations to properly calibrate the screen and pass the tests.

I've successfully tested this changes on two touchscreens (IR and SAW) which have different axis ranges and inversions.

austriancoder commented 10 years ago

Tested-by: Christian Gmeiner christian.gmeiner@gmail.com

La0 commented 10 years ago

We use with success this pull request in our own debian package @ivsgroup.