From d6beb16be26df65cd65eaeb146fde0d355521535 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sat, 5 Dec 2009 02:05:19 -0800 Subject: allow wheel emulation to work with absolute-position devices Signed-off-by: Dima Kogan Signed-off-by: Peter Hutterer --- src/evdev.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/evdev.c') diff --git a/src/evdev.c b/src/evdev.c index 9345d96..7e65c69 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -525,6 +525,9 @@ EvdevProcessAbsoluteMotionEvent(InputInfoPtr pInfo, struct input_event *ev) if (ev->code > ABS_MAX) return; + if (EvdevWheelEmuFilterMotion(pInfo, ev)) + return; + pEvdev->vals[pEvdev->axis_map[ev->code]] = value; if (ev->code == ABS_X) pEvdev->abs |= ABS_X_VALUE; -- cgit v1.2.3