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/managers/input/Touch.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/managers/input/Touch.cpp') diff --git a/src/managers/input/Touch.cpp b/src/managers/input/Touch.cpp index 5d97369f..c48f7473 100644 --- a/src/managers/input/Touch.cpp +++ b/src/managers/input/Touch.cpp @@ -40,4 +40,12 @@ void CInputManager::onTouchMove(wlr_touch_motion_event* e){ wlr_seat_touch_notify_motion(g_pCompositor->m_sSeat.seat, e->time_msec, e->touch_id, local.x, local.y); } -} \ No newline at end of file +} + +void CInputManager::onPointerHoldBegin(wlr_pointer_hold_begin_event* e) { + wlr_pointer_gestures_v1_send_hold_begin(g_pCompositor->m_sWLRPointerGestures, g_pCompositor->m_sSeat.seat, e->time_msec, e->fingers); +} + +void CInputManager::onPointerHoldEnd(wlr_pointer_hold_end_event* e) { + wlr_pointer_gestures_v1_send_hold_end(g_pCompositor->m_sWLRPointerGestures, g_pCompositor->m_sSeat.seat, e->time_msec, e->cancelled); +} -- cgit v1.2.3