aboutsummaryrefslogtreecommitdiff
path: root/src/emuWheel.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-01-16 08:38:52 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-01-23 17:33:10 +1000
commit2f67509b53b27dd7f51ca2aadd19605aee613a61 (patch)
treea5b08454dcb3e2e7b4f094ca204a98b8aa86257d /src/emuWheel.c
parentMove some stuff into the new alloc function (diff)
downloadxf86-input-evdev-2f67509b53b27dd7f51ca2aadd19605aee613a61.tar.gz
xf86-input-evdev-2f67509b53b27dd7f51ca2aadd19605aee613a61.tar.bz2
xf86-input-evdev-2f67509b53b27dd7f51ca2aadd19605aee613a61.zip
Split rel and abs axis mapping into two separate arrays
This will enable a device to have relative scrolling axes in addition to absolute axes (required by the QEMU tablet). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/emuWheel.c')
-rw-r--r--src/emuWheel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emuWheel.c b/src/emuWheel.c
index db989c5..5774930 100644
--- a/src/emuWheel.c
+++ b/src/emuWheel.c
@@ -117,7 +117,7 @@ EvdevWheelEmuFilterMotion(InputInfoPtr pInfo, struct input_event *pEv)
/* We don't want to intercept real mouse wheel events */
if(pEv->type == EV_ABS) {
- int axis = pEvdev->axis_map[pEv->code];
+ int axis = pEvdev->abs_axis_map[pEv->code];
oldValue = valuator_mask_get(pEvdev->vals, axis);
valuator_mask_set(pEvdev->vals, axis, value);
value -= oldValue; /* make value into a differential measurement */