summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-05-17 20:19:02 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-05-17 20:19:02 +0930
commit3d164140845c2ff65d84b56977b1722e95882f1c (patch)
treea15fe3aa0e41a8d429ca80d0c1cf4e141afc6d55
parent42a6b9b643d22ca8df64757cf497d2c7ac2dee65 (diff)
Add event_type to RawDeviceEvent to store matching core event type.
-rw-r--r--XInput.h2
-rw-r--r--XIproto.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/XInput.h b/XInput.h
index baeab9b..2494eaa 100644
--- a/XInput.h
+++ b/XInput.h
@@ -540,6 +540,8 @@ typedef struct {
Display *display; /* Display the event was read from */
int extension; /* XI extension offset */
int evtype; /* XI_RawDeviceEvent */
+ int event_type; /* MotionNotify, ButtonPress or
+ ButtonRelease*/
int deviceid;
int buttons;
int num_valuators;
diff --git a/XIproto.h b/XIproto.h
index 962c04c..182eca9 100644
--- a/XIproto.h
+++ b/XIproto.h
@@ -2080,7 +2080,9 @@ typedef struct
CARD8 num_valuators;
CARD8 first_valuator;
CARD8 deviceid;
- CARD16 pad1;
+ CARD8 event_type; /* one of MotionNotify,
+ ButtonPress, ButtonRelase */
+ CARD8 pad0;
CARD32 valuator0 B32;
CARD32 valuator1 B32;
CARD32 valuator2 B32;