summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/X11/extensions/XInput2.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h
index 925c17e..cbc7fcc 100644
--- a/include/X11/extensions/XInput2.h
+++ b/include/X11/extensions/XInput2.h
@@ -164,6 +164,50 @@ typedef struct {
XIAnyClassInfo *inputclassinfo; /* same as in XDeviceInfo */
} XDeviceClassesChangedEvent;
+typedef struct
+{
+ int base;
+ int latched;
+ int locked;
+} XIModifierState;
+
+typedef XIModifierState XIGroupState;
+
+typedef struct {
+ int mask_len;
+ unsigned char *mask;
+} XIButtonState;
+
+typedef struct {
+ int mask_len;
+ unsigned char *mask;
+ double *values;
+} XIValuatorState;
+
+typedef struct {
+ int type; /* GenericEvent */
+ unsigned long serial; /* # of last request processed by server */
+ Bool send_event; /* true if this came from a SendEvent request */
+ Display *display; /* Display the event was read from */
+ int extension; /* XI extension offset */
+ int evtype;
+ Time time;
+ int detail;
+ Window root;
+ Window event;
+ Window child;
+ int deviceid;
+ int sourceid;
+ float root_x;
+ float root_y;
+ float event_x;
+ float event_y;
+ XIButtonState *buttons;
+ XIValuatorState *valuators;
+ XIModifierState *mods;
+ XIGroupState *group;
+} XIDeviceEvent;
+
_XFUNCPROTOBEGIN
extern Bool XIQueryDevicePointer(