summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-05-02 09:43:48 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-05-02 09:43:48 +0930
commitb12514254cb1d2b91381b59251440b22e36052fb (patch)
tree5278042692ee6b885c33ed18b7f9771a5e96155f
parentce7bbfb7e0ecaf977c4ec8e760c634cebf8ac167 (diff)
Providing a device id for a RawDeviceEvent may not be a bad idea.
-rw-r--r--XInput.h1
-rw-r--r--XIproto.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/XInput.h b/XInput.h
index 7f6fcb9..c4318e3 100644
--- a/XInput.h
+++ b/XInput.h
@@ -539,6 +539,7 @@ typedef struct {
Display *display; /* Display the event was read from */
int extension; /* XI extension offset */
int evtype; /* XI_RawDeviceEvent */
+ int deviceid;
int buttons;
int num_valuators;
int first_valuator;
diff --git a/XIproto.h b/XIproto.h
index 918aae3..9dfec78 100644
--- a/XIproto.h
+++ b/XIproto.h
@@ -2014,7 +2014,7 @@ typedef struct
CARD8 buttons;
CARD8 num_valuators;
CARD8 first_valuator;
- CARD8 pad0;
+ CARD8 deviceid;
CARD16 pad1;
CARD32 valuator0 B32;
CARD32 valuator1 B32;