summaryrefslogtreecommitdiff
path: root/XI.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2008-07-07 15:38:50 +0930
committerPeter Hutterer <peter.hutterer@who-t.net>2008-07-09 12:52:33 +0930
commitbbbe35b3513510afb524e02b8227826dbd5ea87e (patch)
tree71d5691454c3377d1fa9868f723aa50477155ef6 /XI.h
parent9f1f3ef7a36fddacf30ecf867ddad90253103b6a (diff)
Add XI device property requests and replies.
New requests: ListDeviceProperties ... list all props of a device QueryDeviceProperty ... query meta-information about a property ChangeDeviceProperty ... change the content of a property DeleteDeviceProperty ... delete a property GetDeviceProperty ... retrieve a property New event: DevicePropertyChangedNotify ... the given property on the device has changed
Diffstat (limited to 'XI.h')
-rw-r--r--XI.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/XI.h b/XI.h
index a81e8b8..4df6880 100644
--- a/XI.h
+++ b/XI.h
@@ -121,8 +121,17 @@ SOFTWARE.
#define sz_xXiSelectEventReq 16
#define sz_xExtendedGrabDeviceReq 28
#define sz_xExtendedGrabDeviceReply 32
-
-#define INAME "XInputExtension"
+#define sz_xListDevicePropertiesReq 8
+#define sz_xListDevicePropertiesReply 32
+#define sz_xQueryDevicePropertyReq 12
+#define sz_xQueryDevicePropertyReply 32
+#define sz_xConfigureDevicePropertyReq 12
+#define sz_xChangeDevicePropertyReq 20
+#define sz_xDeleteDevicePropertyReq 12
+#define sz_xGetDevicePropertyReq 24
+#define sz_xGetDevicePropertyReply 32
+
+#define INAME "XInputExtension"
#define XI_KEYBOARD "KEYBOARD"
#define XI_MOUSE "MOUSE"
@@ -310,7 +319,7 @@ SOFTWARE.
/* GE masks */
#define XI_DeviceHierarchyChangedMask (1 << 0)
#define XI_DeviceClassesChangedMask (1 << 1)
-
+#define XI_DevicePropertyNotifyMask (1 << 2)
/*
* Make XEventClass be a CARD32 for 64 bit servers. Don't affect client