From 1d133a69b71ebf729edeb5440d7e6a2f13d41cf8 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Sat, 17 Jun 2017 01:13:28 +0200 Subject: [PATCH] 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 --- doc/device-configuration-via-udev.dox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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
-- 1.9.1