summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-06-01 09:12:42 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-06-01 09:13:22 +1000
commit0d75208a554577d652ca9e2856a4f12b0d720a1f (patch)
tree0948a99ddef41ef788eaf394d934bc496ca3f814
parent8aff0836afaef4397f9df273cc90edeca1ab9641 (diff)
Move the XI2 index into versions[] over to XI2.h
-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