mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 21:20:07 +01:00
On some devices, X coordinate is not working well, like if it is swapped:
click on right, pointer appear on left and vice versa.
To sort this issue, coordinates should be reflected on Y axis:
- new X position is changed (width is subtracted by X position)
- Y is unchanged (it was wrongly set to X)
In landscape (or portrait) mode:
[ x ]
[ y ]
[ 1 ]
* =
[ -1 0 1 ] [ x' ] = -x + 0*y + 1*width
[ 0 1 0 ] [ y' ] = 0*x + 1*y + 0*height
[ 0 0 1 ] [ 1 ]
This was verified using this touch screen (usb="0eef:0001")
E: ID_VENDOR=eGalax_Inc.
E: ID_VENDOR_ENC=eGalax\x20Inc.
E: ID_VENDOR_ID=0eef
https://bugs.freedesktop.org/show_bug.cgi?id=101474
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||
|---|---|---|
| .. | ||
| dot | ||
| style | ||
| svg | ||
| absolute-axes.dox | ||
| absolute-coordinate-ranges.dox | ||
| building.dox | ||
| clickpad-softbuttons.dox | ||
| contributing.dox | ||
| device-configuration-via-udev.dox | ||
| faqs.dox | ||
| gestures.dox | ||
| libinput.doxygen.in | ||
| Makefile.am | ||
| middle-button-emulation.dox | ||
| middle-button-emulation.svg | ||
| normalization-of-relative-motion.dox | ||
| page-hierarchy.dox | ||
| palm-detection.dox | ||
| pointer-acceleration.dox | ||
| reporting-bugs.dox | ||
| scrolling.dox | ||
| seats.dox | ||
| switches.dox | ||
| t440-support.dox | ||
| tablet-support.dox | ||
| tapping.dox | ||
| test-suite.dox | ||
| timestamps.dox | ||
| tools.dox | ||
| touchpad-edge-scrolling-state-machine.svg | ||
| touchpad-jumping-cursors.dox | ||
| touchpad-pressure.dox | ||
| touchpad-softbutton-state-machine.svg | ||
| touchpad-tap-state-machine.svg | ||
| touchpads.dox | ||
| what-is-libinput.dox | ||