aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
authorDima Kogan <dkogan@cds.caltech.edu>2009-12-05 02:05:19 -0800
committerPeter Hutterer <peter.hutterer@who-t.net>2009-12-08 11:02:05 +1000
commitd6beb16be26df65cd65eaeb146fde0d355521535 (patch)
tree7484a5879e841f7261c84cc36361ec403a7a01c9 /src/evdev.c
parentremoved unnecessary static declarations (diff)
downloadxf86-input-evdev-d6beb16be26df65cd65eaeb146fde0d355521535.tar.gz
xf86-input-evdev-d6beb16be26df65cd65eaeb146fde0d355521535.tar.bz2
xf86-input-evdev-d6beb16be26df65cd65eaeb146fde0d355521535.zip
allow wheel emulation to work with absolute-position devices
Signed-off-by: Dima Kogan <dkogan@cds.caltech.edu> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c3
1 files changed, 3 insertions, 0 deletions
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;