summaryrefslogtreecommitdiff
path: root/hwdb/Makefile.am
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-11-25 21:35:16 +1000
committerAnthony G. Basile <blueness@gentoo.org>2014-11-28 08:12:30 -0500
commit3481b5b97660d56841c24683f0b8e7ad74a833f7 (patch)
tree8d7f07f4c5b762ef0cedb50c62b9125be08e5439 /hwdb/Makefile.am
parentc317efd55c2368906563309cedb6b0ddb9b88716 (diff)
hwdb: add a new db for the DPI/frequency settings of mice
Pointer acceleration for relative input devices (mice, trackballs, etc.) applies to the deltas of the device. Alas, those deltas have no physical reference point - a delta of 10 may be caused by a large movement of a low-dpi mouse or by a minute movement of a high-dpi mouse. Which makes pointer acceleration a bit useless and high-dpi devices essentially unusable. In an ideal world, we could read the DPI from the device directly and work with that. In the world we actually live in, we need to compile this list manually. This patch introduces the database, with the usual match formats and a single property to be set on a device: MOUSE_DPI That is either a single value for most mice, or a list of values for mice that can change resolution at runtime. The exact format is detailed in the hwdb file. Note that we're explicitly overshooting the requirements we have for libinput atm. Frequency could be detected in software and we don't actually use the list of multiple resolutions (because we can't detect when they change anyway). However, we might as well collect those values from the get-go, adding/modifying what will eventually amount to hundreds of entries is a bit cumbersome. Note: we rely on the input_id builtin to tag us as mouse first, ordering of the rules is important. (David: fixed up typos and moved hwdb file into ./hwdb/) Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'hwdb/Makefile.am')
-rw-r--r--hwdb/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/hwdb/Makefile.am b/hwdb/Makefile.am
index daa9d72c79..c00cfe1335 100644
--- a/hwdb/Makefile.am
+++ b/hwdb/Makefile.am
@@ -9,7 +9,8 @@ dist_udevhwdb_DATA = \
20-sdio-classes.hwdb \
20-sdio-vendor-model.hwdb \
20-usb-classes.hwdb \
- 20-usb-vendor-model.hwdb
+ 20-usb-vendor-model.hwdb \
+ 70-mouse.hwdb
if ENABLE_KEYMAP
dist_udevhwdb_DATA += \