libei/test
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
..
templates test: drop a bunch of unused imports 2023-02-15 08:20:01 +10:00
buildtest.c Purge libreis from the repo 2023-02-09 11:48:28 +10:00
buildtest.cc test: make the c++ build test mirror the c build test 2024-12-02 00:23:14 +00:00
conftest.py test: run pytest with xdist where available 2023-03-03 11:27:01 +10:00
eierpecken.c test: improve debugging for failed event type comparisons 2024-11-27 02:13:53 +00:00
eierpecken.h test: print the line no for peck_ei(s)_assert_no_events 2024-11-27 02:13:53 +00:00
eiproto.py.tmpl test: drop the use of attr 2024-12-10 05:06:49 +00:00
meson.build test: drop the use of attr 2024-12-10 05:06:49 +00:00
test-ei-device.c Add the ei_touchscreen.cancel event and ei_touch_cancel() 2024-12-17 15:12:56 +10:00
test-ei-seat.c test: switch to use ei_seat_bind_capabilities() 2023-05-10 12:21:40 +10:00
test-ei.c ei: make ei_disconnect() public 2024-12-05 02:44:56 +00:00
test-eis.c test: make bug logs fatal by default 2023-11-09 10:15:38 +10:00
test-main.c Remove empty trailing newlines from all files 2023-03-13 08:52:08 +10:00
test_oeffis.py test: rename a variable to shut up ruff with default args 2024-12-10 05:06:49 +00:00
test_protocol.py Add the ei_touchscreen.cancel event and ei_touch_cancel() 2024-12-17 15:12:56 +10:00
test_scanner.py ei-scanner: expose version_arg and version_arg_for 2023-05-26 16:56:13 +10:00
unit-tests.c Add SPDX identifiers to all source files 2022-03-03 00:27:36 +00:00