From e5d143b2386c3773f6fb5176752a1b381d3ee7a5 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 22 Sep 2022 21:14:02 +0100 Subject: support more wlr_cursor events --- src/events/Devices.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/events/Devices.cpp') diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp index b8aeae39..8dea879f 100644 --- a/src/events/Devices.cpp +++ b/src/events/Devices.cpp @@ -206,4 +206,16 @@ void Events::listener_touchEnd(wl_listener* listener, void* data) { void Events::listener_touchUpdate(wl_listener* listener, void* data) { g_pInputManager->onTouchMove((wlr_touch_motion_event*)data); +} + +void Events::listener_touchFrame(wl_listener* listener, void* data) { + wlr_seat_touch_notify_frame(g_pCompositor->m_sSeat.seat); +} + +void Events::listener_holdBegin(wl_listener* listener, void* data) { + g_pInputManager->onPointerHoldBegin((wlr_pointer_hold_begin_event*)data); +} + +void Events::listener_holdEnd(wl_listener* listener, void* data) { + g_pInputManager->onPointerHoldEnd((wlr_pointer_hold_end_event*)data); } \ No newline at end of file -- cgit v1.2.3