summaryrefslogtreecommitdiff
path: root/src/evdev-fallback.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-09-05 09:26:21 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-09-08 09:03:15 +1000
commitf87fffd1937062d8e67ec77ff86f7b2b1495027a (patch)
tree65aff379f12be2a19c357ee180b119e4cbb928e4 /src/evdev-fallback.c
parentf80b142dc3c06f65abd43e4df3000b24c6eec2b3 (diff)
downloadlibinput-f87fffd1937062d8e67ec77ff86f7b2b1495027a.tar.gz
evdev: use filter_dispatch_constant() for the lenovo trackpoint "wheel"
Rather than normalizing manually, leave this up to the pointer acceleration code. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev-fallback.c')
-rw-r--r--src/evdev-fallback.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c
index bd5a458c..4dcccf3b 100644
--- a/src/evdev-fallback.c
+++ b/src/evdev-fallback.c
@@ -90,15 +90,6 @@ fallback_interface_get_switch_state(struct evdev_dispatch *evdev_dispatch,
LIBINPUT_SWITCH_STATE_OFF;
}
-void
-fallback_normalize_delta(struct evdev_device *device,
- const struct device_coords *delta,
- struct normalized_coords *normalized)
-{
- normalized->x = delta->x * DEFAULT_MOUSE_DPI / (double)device->dpi;
- normalized->y = delta->y * DEFAULT_MOUSE_DPI / (double)device->dpi;
-}
-
static inline bool
post_button_scroll(struct evdev_device *device,
struct device_float_coords raw,