aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2011-01-24 11:49:05 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2011-01-25 11:34:24 +1000
commit768c25a99b2f4ec07993eb15a0f05a5e22b5c695 (patch)
treee150c697f560ca357cd00c2fbddde9ad1a05eada /src/evdev.h
parentSwitch to "goto" logic for error handling when adding classes (diff)
downloadxf86-input-evdev-768c25a99b2f4ec07993eb15a0f05a5e22b5c695.tar.gz
xf86-input-evdev-768c25a99b2f4ec07993eb15a0f05a5e22b5c695.tar.bz2
xf86-input-evdev-768c25a99b2f4ec07993eb15a0f05a5e22b5c695.zip
Add support for masked valuators
With the X server now supporting masked valuators for XI2, enable support in X evdev. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/evdev.h b/src/evdev.h
index d5b0f07..e68f7f2 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -109,8 +109,9 @@ typedef struct {
int num_vals; /* number of valuators */
int axis_map[max(ABS_CNT, REL_CNT)]; /* Map evdev <axis> to index */
- int vals[MAX_VALUATORS];
- int old_vals[MAX_VALUATORS]; /* Translate absolute inputs to relative */
+ ValuatorMask *vals; /* new values coming in */
+ ValuatorMask *old_vals; /* old values for calculating relative motion */
+ ValuatorMask *prox; /* last values set while not in proximity */
int flags;
int in_proximity; /* device in proximity */
@@ -122,7 +123,6 @@ typedef struct {
int delta[REL_CNT];
unsigned int abs_queued, rel_queued, prox_queued;
- unsigned int abs_prox; /* valuators posted while out of prox? */
/* XKB stuff has to be per-device rather than per-driver */
XkbRMLVOSet rmlvo;