summaryrefslogtreecommitdiff
path: root/XI2.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2011-02-15 14:27:53 +0000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-09-02 14:49:45 +1000
commit53b58e679f977550301130794c8cb19391ecceb7 (patch)
tree41c781b6b54e62c3ecf849b8559e5a4f265f206f /XI2.h
parentaf1fb609beece899188469a81ac9d8c5e07bfa4a (diff)
downloadxorg-proto-inputproto-53b58e679f977550301130794c8cb19391ecceb7.tar.gz
Add XIPointerEmulated for emulated events
The XIPointerEmulated flag on pointer events means that the event was emulated from a smooth-scroll or touch event to support legacy events, and the client may ignore this if it is listening to the other events. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XI2.h')
-rw-r--r--XI2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/XI2.h b/XI2.h
index 40a9faf..29ffdd1 100644
--- a/XI2.h
+++ b/XI2.h
@@ -146,6 +146,7 @@
/* Device event flags (key events only) */
#define XIKeyRepeat (1 << 16)
/* Device event flags (pointer events only) */
+#define XIPointerEmulated (1 << 16)
/* XI2 event mask macros */
#define XISetMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] |= (1 << ((event) & 7)))