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.
This commit is contained in:
parent
9d56542764
commit
d5c3b228f0
|
@ -44,10 +44,18 @@
|
||||||
# udevadm info /dev/input/eventXX.
|
# udevadm info /dev/input/eventXX.
|
||||||
#
|
#
|
||||||
# Allowed properties are:
|
# Allowed properties are:
|
||||||
|
# ID_INPUT_TRACKBALL
|
||||||
# MOUSE_DPI
|
# MOUSE_DPI
|
||||||
# MOUSE_WHEEL_CLICK_ANGLE
|
# 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 #
|
# MOUSE_DPI #
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
|
@ -101,6 +109,14 @@
|
||||||
# Sort by brand, type (usb, bluetooth), DPI, frequency.
|
# Sort by brand, type (usb, bluetooth), DPI, frequency.
|
||||||
# For mice with switchable resolution, sort by the starred entry.
|
# 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
|
# Apple
|
||||||
##########################################
|
##########################################
|
||||||
|
@ -231,6 +247,7 @@ mouse:usb:v04b3p310c:name:USB Optical Mouse:
|
||||||
# Logitech M570 trackball
|
# Logitech M570 trackball
|
||||||
mouse:usb:v046dp1028:name:Logitech M570:
|
mouse:usb:v046dp1028:name:Logitech M570:
|
||||||
MOUSE_DPI=540@167
|
MOUSE_DPI=540@167
|
||||||
|
ID_INPUT_TRACKBALL=1
|
||||||
|
|
||||||
# Logitech USB-PS/2 M-BZ96C
|
# Logitech USB-PS/2 M-BZ96C
|
||||||
mouse:usb:v046dpc045:name:Logitech USB-PS/2 Optical Mouse:
|
mouse:usb:v046dpc045:name:Logitech USB-PS/2 Optical Mouse:
|
||||||
|
|
Loading…
Reference in a new issue