libei/proto
Peter Hutterer b1c1c5d579 Add the ei_touchscreen.cancel event and ei_touch_cancel()
In the protocol it's a new request/event that is sent instead of the
touch up event.

In the library this is implemented as ei_touch_cancel() which
transparently sends cancel() or up depending on the EIS implementation
support. This is mirrored for the EIS implementation.

Where touch cancel is received as an event it is presented
as EI_EVENT_TOUCH_UP with an ei_event_touch_is_cancel() flag to
check if it was a cancel. This is required for backwards compatbility,
we cannot replace the TOUCH_UP event with a TOUCH_CANCEL event without
breaking existing callers. To add a new event type we would need clients
announcing support for those event types but that's an effort that's
better postponed until we have a stronger need for it (see #68).

Closes #60

Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/308>
2024-12-17 15:12:56 +10:00
..
ei-scanner scanner: switch to using dataclasses 2024-09-12 00:39:09 +00:00
meson.build scanner: switch to using dataclasses 2024-09-12 00:39:09 +00:00
protocol.dtd proto: replace pointer/keyboard/touchscreen with a generic "interface" event 2023-04-06 13:57:18 +10:00
protocol.xml Add the ei_touchscreen.cancel event and ei_touch_cancel() 2024-12-17 15:12:56 +10:00