summaryrefslogtreecommitdiff
path: root/include/dix.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-14 12:45:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-16 11:18:47 +1000
commit84db813b9db34975b5fe288a8a551bb98f0cc1c1 (patch)
tree0bd1479ef867b1e4c06e09150af257fcec74cf5e /include/dix.h
parent92a5862d0c120b009a688237ec7142b7c21ae272 (diff)
Hook up TouchBegin/Update/End events
The are the same as device events internally but require the touch ID separately from the detail.button field (the protocol uses the detail field for the touch id). For simpler integration of pointer emulation we need to set the detail.button field while keeping the touchid around. Add the three new touch event types to the various places in the server where they need to be handled. The actual handling of the events is somewhat more complicated in most places. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'include/dix.h')
-rw-r--r--include/dix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dix.h b/include/dix.h
index 9b9dc4bf3..704320133 100644
--- a/include/dix.h
+++ b/include/dix.h
@@ -582,6 +582,7 @@ extern Bool DevHasCursor(DeviceIntPtr pDev);
extern _X_EXPORT Bool IsPointerDevice(DeviceIntPtr dev);
extern _X_EXPORT Bool IsKeyboardDevice(DeviceIntPtr dev);
extern Bool IsPointerEvent(InternalEvent *event);
+extern Bool IsTouchEvent(InternalEvent *event);
extern _X_EXPORT Bool IsMaster(DeviceIntPtr dev);
extern _X_EXPORT Bool IsFloating(DeviceIntPtr dev);