The libinput device abstracts a number of things but sometimes the underlying
device is important. The udev device provides the necessary handle to access
that underlying device and various sysfs properties that may be necessary.
A function returning the device node would've done the same thing bu
400 used to be the default DPI for many mice but it it's not anymore. A survey
of mice shows that 400 is still common as one of the pre-configured settings
in switchable multi-resolution gaming mice, but devices with a single
resolution mostly favor 1000 dpi.
Let's make that switch now so that any
The filter code is what relies on some default dpi configuration to apply
pointer acceleration and expects the input coordinates to be pre-scaled to
that resolution.
Let's move the define here so we can use it from the touchpad code too.
No functional changes.
Signed-off-by: Peter Hutterer
---
The first patch is just in this series for completeness, it's already been
on this list.
systemd has now merged the mouse DPI hwdb [1], so the next version will come
with that enabled and we just need to start populating the actual database.
The net effect for us is that we can start relying on d
From: Derek Foreman
Instead of using a hard coded mouse DPI value, we query it from udev.
If it's not present or the property is obviously broken we fall back
to default.
Signed-off-by: Derek Foreman
Signed-off-by: Peter Hutterer
Reviewed-by: Hans de Goede
---
src/evdev.c | 26 ++
Signed-off-by: Peter Hutterer
---
src/filter.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/filter.h b/src/filter.h
index 0dc081b..9b12618 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -29,7 +29,7 @@
#include
struct motion_params {
- double dx, dy; /* in un