summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-06-14 08:40:59 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-06-16 14:22:15 +1000
commit1ca170b8d19b1170356a1edf4717cd4a95671a13 (patch)
tree032223373129e124a128e4201694bea36832337e /include
parent4ec5f70a813ba08bfcea7b2ff90f7647a94a95d7 (diff)
XIButtonClass now includes a XIButtonState struct.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/X11/extensions/XInput2.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h
index 7fd81c5..43abdb3 100644
--- a/include/X11/extensions/XInput2.h
+++ b/include/X11/extensions/XInput2.h
@@ -70,6 +70,27 @@ typedef union {
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 deviceid;
int mask_len;
unsigned char* mask;
@@ -86,7 +107,8 @@ typedef struct
int type;
int sourceid;
int num_buttons;
- Atom *buttons;
+ Atom *names;
+ XIButtonState state;
} XIButtonClassInfo;
typedef struct
@@ -186,26 +208,6 @@ typedef struct {
XIAnyClassInfo **classes; /* same as in XIDeviceInfo */
} XIDeviceChangedEvent;
-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 */