]> git.mdlowis.com Git - proto/labwc.git/commitdiff
docs: add calibrationMatrix section for libinput
authorSnowNF <SnowNF@outlook.com>
Wed, 20 Mar 2024 04:17:21 +0000 (12:17 +0800)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 20 Mar 2024 22:52:19 +0000 (22:52 +0000)
docs/labwc-config.5.scd
docs/rc.xml.all

index d21db03bb0cad2489b0159f3e725f913142f77cc..ee734433b523e89c6886ace65753c6001507be01 100644 (file)
@@ -629,6 +629,7 @@ extending outward from the snapped edge.
     <disableWhileTyping></disableWhileTyping>
     <clickMethod></clickMethod>
     <sendEventsMode></sendEventsMode>
+    <calibrationMatrix></calibrationMatrix>
   </device>
 </libinput>
 ```
@@ -734,6 +735,24 @@ extending outward from the snapped edge.
 
        By default, this setting is not configured.
 
+*<libinput><device><calibrationMatrix>* [six float values split by space]
+       Apply the 3x3 transformation matrix to absolute device coordinates. This
+       matrix has no effect on relative events.
+
+       Given a 6-element array [a b c d e f], the matrix is applied as
+       [ a  b  c ]   [ x ]
+       [ d  e  f ] * [ y ]
+       [ 0  0  1 ]   [ 1 ]
+
+       The most common matrices are:
+       90 deg cw:              180 deg cw:             270 deg cw:     reflect along y axis:
+       [ 0 -1 1]               [ -1  0 1]              [  0 1 0 ]              [ -1 0 1 ]
+       [ 1  0 0]               [  0 -1 1]              [ -1 0 1 ]              [  1 0 0 ]
+       [ 0  0 1]               [  0  0 1]              [  0 0 1 ]              [  0 0 1 ]
+
+       visit https://wayland.freedesktop.org/libinput/doc/latest/absolute-axes.html#calibration-of-absolute-devices
+       for more information
+
 ## WINDOW RULES
 
 Two types of window rules are supported, actions and properties. They are
index 546ee010c304443f9d6c6ef565e14d342f59bd4b..4de36af1785c9cef40772393acdef59c9c235cb9 100644 (file)
       - tapButtonMap [lrm|lmr]
       - clickMethod [none|buttonAreas|clickfinger]
       - sendEventsMode [yes|no|disabledOnExternalMouse]
-      - calibrationMatrix [six float values split by space],
-      visit https://wayland.freedesktop.org/libinput/doc/latest/absolute-axes.html#calibration-of-absolute-devices
-      for more information
+      - calibrationMatrix [six float values split by space]
   -->
   <libinput>
     <device category="default">