summaryrefslogtreecommitdiff
path: root/hwdb/70-mouse.hwdb
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-08-03 20:34:56 +1000
committerLennart Poettering <lennart@poettering.net>2016-08-03 12:34:56 +0200
commitd5c3b228f007b3fbda00a8352ce9e90df8950910 (patch)
tree38ebe8ea95e7ad6839d77c4bcc6743b3cb70fac8 /hwdb/70-mouse.hwdb
parent9d565427647a874b7eda64ef0cb41ea74a96659b (diff)
hwdb: add ID_INPUT_TRACKBALL as additional identifier (#3872)
Whether a device is a trackball or not is a physical property so we should store this globally, in one place. The new property must be set in addition to ID_INPUT_MOUSE, otherwise existing clients won't detect the device. No actual code changes required, the default match rule is simply checking for "Trackball" in the name (in a few versions), other entries need to be added manually.
Diffstat (limited to 'hwdb/70-mouse.hwdb')
-rw-r--r--hwdb/70-mouse.hwdb17
1 files changed, 17 insertions, 0 deletions
diff --git a/hwdb/70-mouse.hwdb b/hwdb/70-mouse.hwdb
index a5b39dc41e..b68c01066e 100644
--- a/hwdb/70-mouse.hwdb
+++ b/hwdb/70-mouse.hwdb
@@ -44,10 +44,18 @@
# udevadm info /dev/input/eventXX.
#
# Allowed properties are:
+# ID_INPUT_TRACKBALL
# MOUSE_DPI
# MOUSE_WHEEL_CLICK_ANGLE
#
#########################################
+# ID_INPUT_TRACKBALL #
+#########################################
+#
+# Specified *in additition* to ID_INPUT_MOUSE if the device is a trackball.
+# Removing ID_INPUT_MOUSE will break backwards compatibility.
+#
+#########################################
# MOUSE_DPI #
#########################################
#
@@ -102,6 +110,14 @@
# For mice with switchable resolution, sort by the starred entry.
##########################################
+# Generic
+##########################################
+mouse:*:name:*Trackball*:
+mouse:*:name:*trackball*:
+mouse:*:name:*TrackBall*:
+ ID_INPUT_TRACKBALL=1
+
+##########################################
# Apple
##########################################
@@ -231,6 +247,7 @@ mouse:usb:v04b3p310c:name:USB Optical Mouse:
# Logitech M570 trackball
mouse:usb:v046dp1028:name:Logitech M570:
MOUSE_DPI=540@167
+ ID_INPUT_TRACKBALL=1
# Logitech USB-PS/2 M-BZ96C
mouse:usb:v046dpc045:name:Logitech USB-PS/2 Optical Mouse: