diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-05-17 20:19:02 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-05-17 20:19:02 +0930 |
commit | 3d164140845c2ff65d84b56977b1722e95882f1c (patch) | |
tree | a15fe3aa0e41a8d429ca80d0c1cf4e141afc6d55 | |
parent | 42a6b9b643d22ca8df64757cf497d2c7ac2dee65 (diff) |
Add event_type to RawDeviceEvent to store matching core event type.
-rw-r--r-- | XInput.h | 2 | ||||
-rw-r--r-- | XIproto.h | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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; @@ -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; |