From bf04879502347bca0d532fefef9d8393ed93904e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 14 Jan 2016 10:41:46 +1000 Subject: [PATCH evdev] Restore wheel emulation for absolute devices Wheel emulation relies on oldVals, which stopped updating in 3dcf6f123c5. Restore the update for all x/y abs values. Signed-off-by: Peter Hutterer --- src/evdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index 3176660..a4bbbb8 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -781,12 +781,14 @@ EvdevProcessAbsoluteMotionEvent(InputInfoPtr pInfo, struct input_event *ev) valuator_mask_set(pEvdev->rel_vals, map, value - oldval); pEvdev->rel_queued = 1; } - valuator_mask_set(pEvdev->old_vals, map, value); } else { /* the normal case: just store the number. */ valuator_mask_set(pEvdev->abs_vals, map, value); pEvdev->abs_queued = 1; } + + if (map < 2) + valuator_mask_set(pEvdev->old_vals, map, value); } } -- 2.5.0