summaryrefslogtreecommitdiff
path: root/hwdb/parse_hwdb.py
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-01-05 19:31:51 +1000
committerLennart Poettering <lennart@poettering.net>2017-01-05 10:31:51 +0100
commit1a4132ae1dc5c7ac6eaee9b4964fd669cff9541a (patch)
tree3a39367a0acd2c9604cf5084d95e34984a2f70bf /hwdb/parse_hwdb.py
parent6a47fd894d601f7e8e88dec4cb35dfb7d7c15eff (diff)
hwdb: add MOUSE_WHEEL_TILT_VERTICAL/HORIZONTAL to the mouse db (#5023)
Plenty of single scroll-wheel mice have the ability to tilt the wheel to generate horizontal wheel events. They use the same evdev axis as a real horizontal wheel (REL_HWHEEL) and are indistinguishable to userspace from the real thing. libinput promises physical degrees for wheel events but that's not accurate for those tilting wheels, hence mark them as tilting wheels so we can treat them like the special snowflakes they think they are.
Diffstat (limited to 'hwdb/parse_hwdb.py')
-rwxr-xr-xhwdb/parse_hwdb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwdb/parse_hwdb.py b/hwdb/parse_hwdb.py
index 18f13edd0a..b57e6f75aa 100755
--- a/hwdb/parse_hwdb.py
+++ b/hwdb/parse_hwdb.py
@@ -105,6 +105,8 @@ def property_grammar():
('MOUSE_WHEEL_CLICK_COUNT', INTEGER),
('MOUSE_WHEEL_CLICK_COUNT_HORIZONTAL', INTEGER),
('ID_INPUT_TRACKBALL', Literal('1')),
+ ('MOUSE_WHEEL_TILT_HORIZONTAL', Literal('1')),
+ ('MOUSE_WHEEL_TILT_VERTICAL', Literal('1')),
('POINTINGSTICK_SENSITIVITY', INTEGER),
('POINTINGSTICK_CONST_ACCEL', REAL),
('ID_INPUT_TOUCHPAD_INTEGRATION', Or(('internal', 'external'))),