diff options
author | Daniel Stone <daniel@fooishbar.org> | 2009-07-13 16:49:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-14 11:52:40 +1000 |
commit | 51244a1a4f7165d995c139ba1f0d03d8a1140015 (patch) | |
tree | 6379e5bd27d554bcbe1c39ac5bf3435f0c672b40 /XI2.h | |
parent | c455db2c251770a729d2747e6f05d53c2563b428 (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 'XI2.h')
-rw-r--r-- | XI2.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -108,6 +108,11 @@ #define XIButtonClass 1 #define XIValuatorClass 2 +/* Device event flags (common) */ +/* Device event flags (key events only) */ +#define XIKeyRepeat (1 << 16) +/* Device event flags (pointer events only) */ + /* XI2 event mask macros */ #define XISetMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] |= (1 << ((event) & 7))) #define XIClearMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] &= ~(1 << ((event) & 7))) |