From 4cf9f8bee19104d60031dd040f5758a10ed805b5 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Sat, 17 Jun 2017 01:13:28 +0200 Subject: doc: Fix mistake in Matrix example to relect only X along Y axis 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 Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- doc/device-configuration-via-udev.dox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/device-configuration-via-udev.dox b/doc/device-configuration-via-udev.dox index cacbbf1..4faab93 100644 --- a/doc/device-configuration-via-udev.dox +++ b/doc/device-configuration-via-udev.dox @@ -24,7 +24,7 @@ Example values are: ENV{LIBINPUT_CALIBRATION_MATRIX}="0 -1 1 1 0 0" # 90 degree clockwise ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1" # 180 degree clockwise ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1" # 270 degree clockwise - ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 1 0 0" # reflect along y axis + ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 1 0" # reflect along y axis @endcode
LIBINPUT_DEVICE_GROUP
-- cgit v1.2.3