Add event_type to RawDeviceEvent to store matching core event type.
authorPeter Hutterer <peter@cs.unisa.edu.au>
Thu, 17 May 2007 10:49:02 +0000 (20:19 +0930)
committerPeter Hutterer <peter@cs.unisa.edu.au>
Thu, 17 May 2007 10:49:02 +0000 (20:19 +0930)
XInput.h
XIproto.h

index baeab9b..2494eaa 100644 (file)
--- 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;
index 962c04c..182eca9 100644 (file)
--- 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;