From dd1752ce3ffe9bdfa3e13dc075b7f22750e77fea Mon Sep 17 00:00:00 2001 From: Matt Helsley Date: Sat, 10 Jan 2009 23:51:22 -0800 Subject: Add pressure valuator If it's available report pressure as third valuator. (Use xf86PostMotionEventP instead of the varargs wrapper.) Signed-off-by: Matt Helsley Signed-off-by: Peter Hutterer --- src/evdev.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/evdev.h') diff --git a/src/evdev.h b/src/evdev.h index af88741..231ea66 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -60,14 +60,15 @@ typedef struct { const char *device; int grabDevice; /* grab the event device? */ int screen; - int min_x, min_y, max_x, max_y; - int abs_x, abs_y, old_x, old_y; + int min_x, min_y, max_x, max_y, min_p, max_p; + int abs_x, abs_y, abs_p, old_x, old_y; int flags; int tool; int buttons; /* number of buttons */ BOOL swap_axes; BOOL invert_x; BOOL invert_y; + BOOL has_pressure; /* XKB stuff has to be per-device rather than per-driver */ int noXkb; -- cgit v1.2.3