[systemd-commits] hwdb/70-mouse.hwdb

Peter Hutterer whot at kemper.freedesktop.org
Wed Jan 14 19:33:48 PST 2015


 hwdb/70-mouse.hwdb |   44 +++++++++++++++++++++++++++++++-------------
 1 file changed, 31 insertions(+), 13 deletions(-)

New commits:
commit 011c703495fb564a49dea44b424445241cd58634
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Fri Jan 9 09:51:40 2015 +1000

    hwdb: add MOUSE_WHEEL_CLICK_ANGLE as property
    
    Most mice have a wheel click angle of 15 degrees, i.e. 24 clicks per full
    wheel rotation. Some mice, like the Logitech M325 have a larger angle. To
    allow userspace to make use of that knowledge, add a property to the hwdb.
    
    This allows for better predictive scrolling. e.g. a mouse that has a smaller
    click angle will scroll faster, with this value you can accommodate this
    where needed. Likewise, using "half turn of the wheel" or "full turn of the
    wheel" as a UI element becomes possible.
    
    This addition is mainly driven by libinput 0.8, having the angle enables
    libinput to provide an API that distinguishes between a physical distance
    (like touchpad scrolling does) and discrete steps (wheel clicks).
    Callers can choose what they prefer based on the device.

diff --git a/hwdb/70-mouse.hwdb b/hwdb/70-mouse.hwdb
index a7e9eb2..970d5b5 100644
--- a/hwdb/70-mouse.hwdb
+++ b/hwdb/70-mouse.hwdb
@@ -28,6 +28,29 @@
 # mouse:usb:v17efp6019:*
 # mouse:*:name:Lenovo Optical USB Mouse:
 #
+# To add local entries, create a new file
+#   /etc/udev/hwdb.d/71-mouse-local.hwdb
+# and add your rules there. To load the new rules execute (as root):
+#   udevadm hwdb --update
+#   udevadm trigger /dev/input/eventXX
+# where /dev/input/eventXX is the mouse in question. If in
+# doubt, simply use /dev/input/event* to reload all input rules.
+#
+# If your changes are generally applicable, open a bug report on
+#   http://bugs.freedesktop.org/enter_bug.cgi?product=systemd
+# and include your new rules, a description of the device, and the
+# output of
+#   udevadm info /dev/input/eventXX
+# (or /dev/input/event*).
+#
+# Allowed properties are:
+#    MOUSE_DPI
+#    MOUSE_WHEEL_CLICK_ANGLE
+#
+#########################################
+#               MOUSE_DPI               #
+#########################################
+#
 # DPI settings are specified as
 #    MOUSE_DPI=<dpi>[@<frequency>]
 #
@@ -64,20 +87,15 @@
 # third-party software) must not be entered into this file, use a local
 # hwdb instead.
 #
-# To add local entries, create a new file
-#   /etc/udev/hwdb.d/71-mouse-local.hwdb
-# and add your rules there. To load the new rules execute (as root):
-#   udevadm hwdb --update
-#   udevadm trigger /dev/input/eventXX
-# where /dev/input/eventXX is the mouse in question. If in
-# doubt, simply use /dev/input/event* to reload all input rules.
+#########################################
+#       MOUSE_WHEEL_CLICK_ANGLE         #
+#########################################
+#
+# The angle in degrees per mouse wheel 'click', specified as
+#     MOUSE_WHEEL_CLICK_ANGLE=<degrees>
+#
+# Most mice have a 15 degree click stop (24 clicks per full rotation).
 #
-# If your changes are generally applicable, open a bug report on
-#   http://bugs.freedesktop.org/enter_bug.cgi?product=systemd
-# and include your new rules, a description of the device, and the
-# output of
-#   udevadm info /dev/input/eventXX
-# (or /dev/input/event*).
 
 #
 # Sort by by brand, type (usb, bluetooth), DPI, frequency.



More information about the systemd-commits mailing list