summaryrefslogtreecommitdiff
path: root/XI2proto.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2009-07-13 16:49:33 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-14 11:52:40 +1000
commit51244a1a4f7165d995c139ba1f0d03d8a1140015 (patch)
tree6379e5bd27d554bcbe1c39ac5bf3435f0c672b40 /XI2proto.h
parentc455db2c251770a729d2747e6f05d53c2563b428 (diff)
Device{,Raw}Event: Add flags field.
Add a flags member to DeviceEvent and DeviceKeyEvent; the only currently defined flag is KeyRepeat, indicating a repeat event (a la XKB detectable autorepeat), which is only valid for key events. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XI2proto.h')
-rw-r--r--XI2proto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/XI2proto.h b/XI2proto.h
index b7b118b..e6ec190 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -936,6 +936,7 @@ typedef struct
uint16_t valuators_len; /**< Len of val. flags in 4 b units */
uint16_t sourceid; /**< The source device */
uint16_t pad0;
+ uint32_t flags; /**< ::XIKeyRepeat */
xXIModifierInfo mods;
xXIGroupInfo group;
} xXIDeviceEvent;
@@ -962,7 +963,7 @@ typedef struct
::XI_KeyRelease */
uint16_t valuators_len; /**< Length of trailing valuator
mask in 4 byte units */
- uint32_t pad1;
+ uint32_t flags; /**< ::XIKeyRepeat */
uint32_t pad2;
} xXIRawEvent;