summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/X11/extensions/XInput2.h50
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
/*