mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-07 23:02:23 +00:00
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>
This commit is contained in:
parent
92a5862d0c
commit
84db813b9d
7 changed files with 53 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue