]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: add a udev property for a wheel click angle on horiz wheels 3986/head
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 16 Aug 2016 05:23:42 +0000 (15:23 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 19 Aug 2016 01:57:36 +0000 (11:57 +1000)
The Logitech MX Master has a horizontal scroll wheel with a different click
angle than the vertical one. Add a new property for this case, we can't add
values to the normal one without risking upsetting existing parsers.

Fixes #3947

hwdb/70-mouse.hwdb
hwdb/parse_hwdb.py

index d8215a6179851ace83fb15c59c761404f12eafb5..70a7fb98d1341a89301c3811eb22d3528aad05da 100644 (file)
@@ -47,6 +47,7 @@
 #    ID_INPUT_TRACKBALL
 #    MOUSE_DPI
 #    MOUSE_WHEEL_CLICK_ANGLE
+#    MOUSE_WHEEL_CLICK_ANGLE_HORIZ
 #
 #########################################
 #         ID_INPUT_TRACKBALL            #
 #
 # Most mice have a 15 degree click stop (24 clicks per full rotation).
 #
+#########################################
+#       MOUSE_WHEEL_CLICK_ANGLE_HORIZ   #
+#########################################
+#
+# Identical to MOUSE_WHEEL_CLICK_ANGLE but for the horizontal scroll wheel.
+# This property may only be specified if the angle for the horizontal
+# scroll wheel differs from the vertical wheel. If so, *both* click angles
+# must be specified.
 
 #
 # Sort by brand, type (usb, bluetooth), DPI, frequency.
@@ -344,9 +353,14 @@ mouse:usb:v046dpc52b:name:Logitech Unifying Device. Wireless PID:402d:
 
 # Logitech Performance MX
 mouse:usb:v046dp101a:name:Logitech Performance MX:
+ MOUSE_DPI=1000@166
+
 # Logitech MX Master
+# Horiz wheel has 14 stops, angle is rounded up
 mouse:usb:v046dp4041:name:Logitech MX Master:
  MOUSE_DPI=1000@166
+ MOUSE_WHEEL_CLICK_ANGLE=15
+ MOUSE_WHEEL_CLICK_ANGLE_HORIZ=26
 
 # Logitech MK260 Wireless Combo Receiver aka M-R0011
 mouse:usb:v046dpc52e:name:Logitech USB Receiver:
index 99d034b4e05539e25734d98cc62de3f0cb115325..fc23a5d025957b9e65f4d85b0bae14abc4c0c507 100755 (executable)
@@ -82,6 +82,7 @@ def property_grammar():
     setting = Optional('*')('DEFAULT') + INTEGER('DPI') + Suppress('@') + INTEGER('HZ')
     props = (('MOUSE_DPI', Group(OneOrMore(setting('SETTINGS*')))),
              ('MOUSE_WHEEL_CLICK_ANGLE', INTEGER),
+             ('MOUSE_WHEEL_CLICK_ANGLE_HORIZ', INTEGER),
              ('ID_INPUT_TRACKBALL', Literal('1')),
              ('POINTINGSTICK_SENSITIVITY', INTEGER),
              ('POINTINGSTICK_CONST_ACCEL', REAL),