summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--XI.h4
-rw-r--r--XI2.h9
2 files changed, 12 insertions, 1 deletions
diff --git a/XI.h b/XI.h
index dca949c..7b44399 100644
--- a/XI.h
+++ b/XI.h
@@ -135,6 +135,8 @@ SOFTWARE.
#define XI_FOOTMOUSE "FOOTMOUSE"
#define XI_JOYSTICK "JOYSTICK"
+/* Indices into the versions[] array (XExtInt.c). Used as a index to
+ * retrieve the minimum version of XI from _XiCheckExtInit */
#define Dont_Check 0
#define XInput_Initial_Release 1
#define XInput_Add_XDeviceBell 2
@@ -142,7 +144,7 @@ SOFTWARE.
#define XInput_Add_XChangeDeviceControl 4
#define XInput_Add_DevicePresenceNotify 5
#define XInput_Add_DeviceProperties 6
-#define XInput_2 7
+/* DO NOT ADD TO HERE -> XI2 */
#define XI_Absent 0
#define XI_Present 1
diff --git a/XI2.h b/XI2.h
index 4765853..1347762 100644
--- a/XI2.h
+++ b/XI2.h
@@ -25,6 +25,15 @@
#ifndef _XI2_H_
#define _XI2_H_
+/* Indices into the versions[] array (XExtInt.c). Used as a index to
+ * retrieve the minimum version of XI from _XiCheckExtInit.
+ * For indices 0 to 6 see XI.h */
+#ifndef Dont_Check /* defined in XI.h */
+#define Dont_Check 0
+#endif
+#define XInput_2_0 7
+
+
#define XI_2_Major 2
#define XI_2_Minor 0