aboutsummaryrefslogtreecommitdiff
path: root/src/ctrl/mouse.h
diff options
context:
space:
mode:
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