|
|
@ -30,6 +30,7 @@ void handle_touch_down(struct libinput_event *event,
|
|
|
|
struct libinput_event_touch *tevent =
|
|
|
|
struct libinput_event_touch *tevent =
|
|
|
|
libinput_event_get_touch_event(event);
|
|
|
|
libinput_event_get_touch_event(event);
|
|
|
|
struct wlr_event_touch_down wlr_event = { 0 };
|
|
|
|
struct wlr_event_touch_down wlr_event = { 0 };
|
|
|
|
|
|
|
|
wlr_event.device = wlr_dev;
|
|
|
|
wlr_event.time_sec = libinput_event_touch_get_time(tevent);
|
|
|
|
wlr_event.time_sec = libinput_event_touch_get_time(tevent);
|
|
|
|
wlr_event.time_usec = libinput_event_touch_get_time_usec(tevent);
|
|
|
|
wlr_event.time_usec = libinput_event_touch_get_time_usec(tevent);
|
|
|
|
wlr_event.slot = libinput_event_touch_get_slot(tevent);
|
|
|
|
wlr_event.slot = libinput_event_touch_get_slot(tevent);
|
|
|
@ -50,6 +51,7 @@ void handle_touch_up(struct libinput_event *event,
|
|
|
|
struct libinput_event_touch *tevent =
|
|
|
|
struct libinput_event_touch *tevent =
|
|
|
|
libinput_event_get_touch_event(event);
|
|
|
|
libinput_event_get_touch_event(event);
|
|
|
|
struct wlr_event_touch_up wlr_event = { 0 };
|
|
|
|
struct wlr_event_touch_up wlr_event = { 0 };
|
|
|
|
|
|
|
|
wlr_event.device = wlr_dev;
|
|
|
|
wlr_event.time_sec = libinput_event_touch_get_time(tevent);
|
|
|
|
wlr_event.time_sec = libinput_event_touch_get_time(tevent);
|
|
|
|
wlr_event.time_usec = libinput_event_touch_get_time_usec(tevent);
|
|
|
|
wlr_event.time_usec = libinput_event_touch_get_time_usec(tevent);
|
|
|
|
wlr_event.slot = libinput_event_touch_get_slot(tevent);
|
|
|
|
wlr_event.slot = libinput_event_touch_get_slot(tevent);
|
|
|
@ -67,6 +69,7 @@ void handle_touch_motion(struct libinput_event *event,
|
|
|
|
struct libinput_event_touch *tevent =
|
|
|
|
struct libinput_event_touch *tevent =
|
|
|
|
libinput_event_get_touch_event(event);
|
|
|
|
libinput_event_get_touch_event(event);
|
|
|
|
struct wlr_event_touch_motion wlr_event = { 0 };
|
|
|
|
struct wlr_event_touch_motion wlr_event = { 0 };
|
|
|
|
|
|
|
|
wlr_event.device = wlr_dev;
|
|
|
|
wlr_event.time_sec = libinput_event_touch_get_time(tevent);
|
|
|
|
wlr_event.time_sec = libinput_event_touch_get_time(tevent);
|
|
|
|
wlr_event.time_usec = libinput_event_touch_get_time_usec(tevent);
|
|
|
|
wlr_event.time_usec = libinput_event_touch_get_time_usec(tevent);
|
|
|
|
wlr_event.slot = libinput_event_touch_get_slot(tevent);
|
|
|
|
wlr_event.slot = libinput_event_touch_get_slot(tevent);
|
|
|
@ -87,6 +90,7 @@ void handle_touch_cancel(struct libinput_event *event,
|
|
|
|
struct libinput_event_touch *tevent =
|
|
|
|
struct libinput_event_touch *tevent =
|
|
|
|
libinput_event_get_touch_event(event);
|
|
|
|
libinput_event_get_touch_event(event);
|
|
|
|
struct wlr_event_touch_cancel wlr_event = { 0 };
|
|
|
|
struct wlr_event_touch_cancel wlr_event = { 0 };
|
|
|
|
|
|
|
|
wlr_event.device = wlr_dev;
|
|
|
|
wlr_event.time_sec = libinput_event_touch_get_time(tevent);
|
|
|
|
wlr_event.time_sec = libinput_event_touch_get_time(tevent);
|
|
|
|
wlr_event.time_usec = libinput_event_touch_get_time_usec(tevent);
|
|
|
|
wlr_event.time_usec = libinput_event_touch_get_time_usec(tevent);
|
|
|
|
wlr_event.slot = libinput_event_touch_get_slot(tevent);
|
|
|
|
wlr_event.slot = libinput_event_touch_get_slot(tevent);
|
|
|
|