1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

wayland_common: add touch listener boilerplate

Required if seat version >=6 is used.
This commit is contained in:
nanahi 2024-02-01 22:14:03 -05:00 committed by Dudemanguy
parent b3edb46fd9
commit e0f9cf61b9

View File

@ -436,12 +436,24 @@ static void touch_handle_cancel(void *data, struct wl_touch *wl_touch)
{
}
static void touch_handle_shape(void *data, struct wl_touch *wl_touch,
int32_t id, wl_fixed_t major, wl_fixed_t minor)
{
}
static void touch_handle_orientation(void *data, struct wl_touch *wl_touch,
int32_t id, wl_fixed_t orientation)
{
}
static const struct wl_touch_listener touch_listener = {
touch_handle_down,
touch_handle_up,
touch_handle_motion,
touch_handle_frame,
touch_handle_cancel,
touch_handle_shape,
touch_handle_orientation,
};
static void keyboard_handle_keymap(void *data, struct wl_keyboard *wl_keyboard,