diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-28 10:32:54 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-11 14:26:07 +1000 |
commit | 13ed59c032b74d106acd08d8893c2708ef5564c5 (patch) | |
tree | 8bcf7048c67990c5d3800e59e8e19c724e3302dc /include | |
parent | 88fcb0938a898ef6c9f48fce2874c37e3788fe9c (diff) |
Add XIQueryDevice implementation.
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/extensions/XInput2.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index f6de35e..0bd51fe 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -75,6 +75,48 @@ typedef struct unsigned char* mask; } XIDeviceEventMask; +typedef struct +{ + int type; +} XIAnyClassInfo; + +typedef struct +{ + int type; + int num_buttons; + Atom *buttons; +} XIButtonClassInfo; + +typedef struct +{ + int type; + int num_keycodes; + int *keycodes; +} XIKeyClassInfo; + +typedef struct +{ + int type; + int number; + Atom name; + double min; + double max; + int resolution; + int mode; +} XIValuatorClassInfo; + +typedef struct +{ + int deviceid; + char* name; + int use; + int attachment; + Bool enabled; + int num_classes; + XIAnyClassInfo **classes; +} XIDeviceInfo; + + _XFUNCPROTOBEGIN extern Bool XIQueryDevicePointer( @@ -147,6 +189,14 @@ extern Status XIQueryVersion( int* /* minor_version_return*/ ); +extern XIDeviceInfo* XIQueryDevice( + Display* /* dpy */, + int /* deviceid */, + int* /* ndevices_return */ +); + +extern void XIFreeDeviceInfo(XIDeviceInfo *info); + _XFUNCPROTOEND /* |