summaryrefslogtreecommitdiff
path: root/mi/mieq.c
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 /mi/mieq.c
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 'mi/mieq.c')
-rw-r--r--mi/mieq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mi/mieq.c b/mi/mieq.c
index 093dba20f..06c3d8e0c 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -370,6 +370,9 @@ ChangeDeviceID(DeviceIntPtr dev, InternalEvent* event)
case ET_ProximityOut:
case ET_Hierarchy:
case ET_DeviceChanged:
+ case ET_TouchBegin:
+ case ET_TouchUpdate:
+ case ET_TouchEnd:
event->device_event.deviceid = dev->id;
break;
#if XFreeXDGA