summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhilippe Coval <philippe.coval@osg.samsung.com>2017-06-17 01:13:28 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2017-06-20 16:43:49 +1000
commit4cf9f8bee19104d60031dd040f5758a10ed805b5 (patch)
tree8be526f0e0b8557498c91c6e330c555638134dac /doc
parentd2054c8188681868c77f731ba3641ecbe5b775dc (diff)
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 <philippe.coval@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/device-configuration-via-udev.dox2
1 files changed, 1 insertions, 1 deletions
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
</dd>
<dt>LIBINPUT_DEVICE_GROUP</dt>