aboutsummaryrefslogtreecommitdiff
path: root/src/ctrl/mouse.h
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2025-01-03 04:02:23 +0100
committervimene <vincent.menegaux@gmail.com>2025-01-03 04:02:23 +0100
commit77cd3a0538d342e25010132317734f27af4bed8e (patch)
tree372d57aa2a76437d80c9312f1e81a54439bf9b42 /src/ctrl/mouse.h
parent26b4b82a7be2c029491f3009b66b3cbf8db5d93c (diff)
downloadengine-77cd3a0538d342e25010132317734f27af4bed8e.tar.gz
improved keyboard and mouse controls
Diffstat (limited to 'src/ctrl/mouse.h')
-rw-r--r--src/ctrl/mouse.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ctrl/mouse.h b/src/ctrl/mouse.h
new file mode 100644
index 0000000..8b66cee
--- /dev/null
+++ b/src/ctrl/mouse.h
@@ -0,0 +1,20 @@
+#ifndef CTRL_MOUSE_H
+#define CTRL_MOUSE_H
+
+#include "math/vector.h"
+
+using engine::math::Vector2;
+
+namespace engine::controllers {
+
+class Mouse {
+ public:
+ bool moved;
+ Vector2 rel_motion;
+
+ constexpr Mouse() : moved{false}, rel_motion{0.f, 0.f} {}
+};
+
+}
+
+#endif // CTRL_MOUSE_H