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.
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.