From 2f67509b53b27dd7f51ca2aadd19605aee613a61 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 16 Jan 2013 08:38:52 +1000 Subject: 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 --- src/evdev.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/evdev.h') diff --git a/src/evdev.h b/src/evdev.h index 51b7fa0..63c3bfa 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -158,7 +158,8 @@ typedef struct { int num_vals; /* number of valuators */ int num_mt_vals; /* number of multitouch valuators */ - int axis_map[max(ABS_CNT, REL_CNT)]; /* Map evdev to index */ + int abs_axis_map[ABS_CNT]; /* Map evdev ABS_* to index */ + int rel_axis_map[REL_CNT]; /* Map evdev REL_* to index */ ValuatorMask *vals; /* new values coming in */ ValuatorMask *old_vals; /* old values for calculating relative motion */ ValuatorMask *prox; /* last values set while not in proximity */ -- cgit v1.2.3