summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.hpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-08-07 21:17:03 +0200
committervaxerski <vaxry@vaxry.net>2022-08-07 21:17:03 +0200
commitd64227e7c7fb706974539f359abe1dd50eb19c34 (patch)
tree954ee7d6c4ba239b3bb8efc9582e3a0987e5ec10 /src/managers/input/InputManager.hpp
parent3a8dcf284aa3953585e3f700afa1095903c3a65f (diff)
added basic touch controls
Diffstat (limited to 'src/managers/input/InputManager.hpp')
-rw-r--r--src/managers/input/InputManager.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp
index cb0bd722..188d288f 100644
--- a/src/managers/input/InputManager.hpp
+++ b/src/managers/input/InputManager.hpp
@@ -12,6 +12,10 @@ enum eClickBehaviorMode {
CLICKMODE_KILL
};
+struct STouchData {
+ CWindow* touchFocusWindow = nullptr;
+};
+
class CInputManager {
public:
@@ -44,6 +48,11 @@ public:
eClickBehaviorMode getClickMode();
void processMouseRequest(wlr_seat_pointer_request_set_cursor_event*);
+ void onTouchDown(wlr_touch_down_event*);
+ void onTouchUp(wlr_touch_up_event*);
+ void onTouchMove(wlr_touch_motion_event*);
+
+ STouchData m_sTouchData;
// for dragging floating windows
CWindow* currentlyDraggedWindow = nullptr;