aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-09-22 21:14:02 +0100
committervaxerski <[email protected]>2022-09-22 21:14:02 +0100
commite5d143b2386c3773f6fb5176752a1b381d3ee7a5 (patch)
tree6deb7fb7eacdf29758a7a962c365f1038ca0ff37 /src/events/Devices.cpp
parent37f2e1ddbe4020e59395b2f364c5a6e7d6db550a (diff)
downloadHyprland-e5d143b2386c3773f6fb5176752a1b381d3ee7a5.tar.gz
Hyprland-e5d143b2386c3773f6fb5176752a1b381d3ee7a5.zip
support more wlr_cursor events
Diffstat (limited to 'src/events/Devices.cpp')
-rw-r--r--src/events/Devices.cpp12
1 files changed, 12 insertions, 0 deletions
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