summaryrefslogtreecommitdiff
path: root/XIproto.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-01-10 14:53:01 +1030
committerPeter Hutterer <whot@hyena.localdomain>2007-01-10 14:53:01 +1030
commitb50c4424020d1b2b641ce15ee3ffea41a287a160 (patch)
treec53a03d6f56de3ee1f06f80d387f992cf3a5f6b3 /XIproto.h
parent3b84ea85ace4dc9fe1caf7d7c45c0c51ee35b4b2 (diff)
add deviceEnterNotify event, DeviceEnterNotify, DeviceLeaveNotify support
add MPX Major/Minor version numbers
Diffstat (limited to 'XIproto.h')
-rw-r--r--XIproto.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/XIproto.h b/XIproto.h
index 541e9a2..89f171a 100644
--- a/XIproto.h
+++ b/XIproto.h
@@ -72,7 +72,7 @@ SOFTWARE.
#define numInputClasses 7
-#define IEVENTS 16
+#define IEVENTS 18
#define IERRORS 5
#define CLIENT_REQ 1
@@ -114,6 +114,8 @@ struct tmask
#define XI_DeviceKeystateNotify 13
#define XI_DeviceButtonstateNotify 14
#define XI_DevicePresenceNotify 15
+#define XI_DeviceEnterNotify 16
+#define XI_DeviceLeaveNotify 17
/*********************************************************
*
@@ -1690,6 +1692,34 @@ typedef struct
} devicePresenceNotify;
+/**********************************************************
+ *
+ * deviceEnterNotify.
+ *
+ */
+
+typedef struct
+ {
+ BYTE type;
+ BYTE pad00;
+ CARD16 sequenceNumber B16;
+ Time time B32;
+ Window root B32;
+ Window event B32;
+ Window child B32;
+ INT16 rootX B16;
+ INT16 rootY B16;
+ INT16 eventX B16;
+ INT16 eventY B16;
+ KeyButMask state B16;
+ BYTE mode;
+ /* flags are missing */
+ CARD8 deviceid;
+ } deviceEnterNotify;
+
+typedef deviceEnterNotify deviceLeaveNotify;
+
+
#undef Window
#undef Time
#undef KeyCode