- cancel
void function(void* data, wl_touch* wl_touch) cancel;
- down
void function(void* data, wl_touch* wl_touch, uint serial, uint time, wl_surface* surface, int id, wl_fixed_t x, wl_fixed_t y) down;
touch down event and beginning of a touch sequence
- frame
void function(void* data, wl_touch* wl_touch) frame;
- motion
void function(void* data, wl_touch* wl_touch, uint time, int id, wl_fixed_t x, wl_fixed_t y) motion;
update of touch point coordinates
- up
void function(void* data, wl_touch* wl_touch, uint serial, uint time, int id) up;
end of a touch event sequence
touchscreen input device
The wl_touch interface represents a touchscreen associated with a seat.
Touch interactions can consist of one or more contacts. For each contact, a series of events is generated, starting with a down event, followed by zero or more motion events, and ending with an up event. Events relating to the same contact point can be identified by the ID of the sequence.