libei/tools
Peter Hutterer ff9e8905a0 Add support for swipe, pinch and hold gestures
On the protocol level these are implemented as three separate interfaces
for swipe, pinch and hold, each interface has the begin/update/end
sequence and effectively matches the wayland pointer-gestures protocol.

Notably, only one of each gesture may be active at any time though the
protocol allows for separate gestures to be active (i.e. swipe while
pinching).

On the library side the gestures match the touch interface so the
sequence for a sender is:

  swipe = ei_device_new_swipe(device, finger_count);
  ei_swipe_begin(swipe);
  ei_swipe_update(swipe, dx, dy);
  ei_swipe_end(swipe);

with the corresponding APIs for pinch and hold.

On the receiver side the event types are separated for BEGIN/UPDATE/END
for all three gestures and thus match the libinput interface.

The notable difference however: there is only one CAP_GESTURES (similar
to libinput) and it is set if any gesture is available on the caller.
Creating a swipe gesture if the remote end does not support it will
return NULL though.

Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/309>
2026-04-21 11:12:29 +10:00
..
ei-debug-events.c Add support for swipe, pinch and hold gestures 2026-04-21 11:12:29 +10:00
ei-demo-client.c Add support for swipe, pinch and hold gestures 2026-04-21 11:12:29 +10:00
eis-demo-server-uinput.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
eis-demo-server.c Add support for swipe, pinch and hold gestures 2026-04-21 11:12:29 +10:00
eis-demo-server.h Add support for swipe, pinch and hold gestures 2026-04-21 11:12:29 +10:00
meson.build Add a new text interface for sending keysyms and utf8 text 2026-04-02 05:09:37 +00:00
oeffis-demo-tool.c Format the code with clang-format 2026-03-12 13:55:19 +10:00