implement touch support

this is mostly plumbing; the most interesting logic is in touch_get_coords
This commit is contained in:
bi4k8 2021-12-31 23:50:31 +00:00
parent 06042337d6
commit 600d8af915
4 changed files with 137 additions and 0 deletions

View file

@ -107,6 +107,11 @@ struct seat {
struct wl_listener keyboard_key;
struct wl_listener keyboard_modifiers;
struct wl_listener touch_down;
struct wl_listener touch_up;
struct wl_listener touch_motion;
struct wl_listener touch_frame;
struct wl_listener request_start_drag;
struct wl_listener start_drag;
struct wl_listener destroy_drag;
@ -477,6 +482,9 @@ void cursor_finish(struct seat *seat);
void keyboard_init(struct seat *seat);
void keyboard_finish(struct seat *seat);
void touch_init(struct seat *seat);
void touch_finish(struct seat *seat);
void seat_init(struct server *server);
void seat_finish(struct server *server);
void seat_reconfigure(struct server *server);