summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-17 16:56:33 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-17 16:56:33 +0100
commitd6c2553af2fc42b3ea61a1bd5f6e2cc395deccbe (patch)
treee690297fd4f953824129dd148bcec66a63a86957 /src/input
parentcf51ab71a25cbb60ebcf13edd4b7413c23264128 (diff)
start handling monitors
Diffstat (limited to 'src/input')
-rw-r--r--src/input/InputManager.cpp7
-rw-r--r--src/input/InputManager.hpp2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/input/InputManager.cpp b/src/input/InputManager.cpp
index 3140e22d..4e099593 100644
--- a/src/input/InputManager.cpp
+++ b/src/input/InputManager.cpp
@@ -14,4 +14,9 @@ void CInputManager::onMouseMoved(wlr_event_pointer_motion* e) {
wlr_cursor_move(g_pCompositor->m_sWLRCursor, e->device, delta.floor().x, delta.floor().y);
}
-} \ No newline at end of file
+}
+
+void CInputManager::onMouseWarp(wlr_event_pointer_motion_absolute* e) {
+ wlr_cursor_warp_absolute(g_pCompositor->m_sWLRCursor, e->device, e->x, e->y);
+}
+
diff --git a/src/input/InputManager.hpp b/src/input/InputManager.hpp
index 38ec419a..10492732 100644
--- a/src/input/InputManager.hpp
+++ b/src/input/InputManager.hpp
@@ -6,7 +6,7 @@ class CInputManager {
public:
void onMouseMoved(wlr_event_pointer_motion*);
- void onMouseButton(int);
+ void onMouseWarp(wlr_event_pointer_motion_absolute*);
private:
Vector2D m_vMouseCoords = Vector2D(0,0);