summaryrefslogtreecommitdiff
path: root/src/managers/InputManager.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-18 20:03:39 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-18 20:03:39 +0100
commita9773bd91a2c01982cc9b9807233c95303feada1 (patch)
tree3d5936042a0e7330ee9bda9f49601f09beb86b17 /src/managers/InputManager.hpp
parent854c827911b898d38fd54cdfab6bbd57296d3842 (diff)
XWayland and moved managers
Diffstat (limited to 'src/managers/InputManager.hpp')
-rw-r--r--src/managers/InputManager.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/managers/InputManager.hpp b/src/managers/InputManager.hpp
new file mode 100644
index 00000000..b750ad4c
--- /dev/null
+++ b/src/managers/InputManager.hpp
@@ -0,0 +1,27 @@
+#pragma once
+
+#include "../defines.hpp"
+#include <deque>
+#include "../helpers/WLClasses.hpp"
+
+class CInputManager {
+public:
+
+ void onMouseMoved(wlr_event_pointer_motion*);
+ void onMouseWarp(wlr_event_pointer_motion_absolute*);
+ void onKeyboardKey(wlr_event_keyboard_key*);
+ void onKeyboardMod(void*);
+
+ void newKeyboard(wlr_input_device*);
+
+ Vector2D getMouseCoordsInternal();
+
+private:
+ Vector2D m_vMouseCoords = Vector2D(0,0);
+ Vector2D m_vWLRMouseCoords = Vector2D(0,0);
+
+ std::deque<SKeyboard> m_dKeyboards;
+
+};
+
+inline std::unique_ptr<CInputManager> g_pInputManager; \ No newline at end of file