mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
![]() 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/) |
||
---|---|---|
.. | ||
.gitignore | ||
42-usb-hid-pm.rules | ||
50-udev-default.rules | ||
60-cdrom_id.rules | ||
60-drm.rules | ||
60-keyboard.rules | ||
60-persistent-alsa.rules | ||
60-persistent-input.rules | ||
60-persistent-serial.rules | ||
60-persistent-storage-tape.rules | ||
60-persistent-storage.rules | ||
60-persistent-v4l.rules | ||
61-accelerometer.rules | ||
64-btrfs.rules | ||
70-mouse.rules | ||
75-net-description.rules | ||
75-probe_mtd.rules | ||
75-tty-description.rules | ||
78-sound-card.rules | ||
80-drivers.rules | ||
80-net-setup-link.rules | ||
95-udev-late.rules | ||
99-systemd.rules.in | ||
Makefile |