diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2008-07-07 15:38:50 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2008-07-09 12:52:33 +0930 |
commit | bbbe35b3513510afb524e02b8227826dbd5ea87e (patch) | |
tree | 71d5691454c3377d1fa9868f723aa50477155ef6 /XI.h | |
parent | 9f1f3ef7a36fddacf30ecf867ddad90253103b6a (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.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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 |