diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-05 17:01:58 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-11 14:48:58 +1000 |
commit | 35a9ea79fc97bf80bfc4aea7f98ae97ac8cff762 (patch) | |
tree | e69d35f401488baa44ad2fba8e5c86cea5190c91 /include | |
parent | f00f4dccba7f109dd6ec00be34543766f38264e9 (diff) |
Add support for XIDeviceEvents.
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/extensions/XInput2.h | 44 |
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( |