From 77cd3a0538d342e25010132317734f27af4bed8e Mon Sep 17 00:00:00 2001 From: vimene Date: Fri, 3 Jan 2025 04:02:23 +0100 Subject: improved keyboard and mouse controls --- src/ctrl/mouse.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ctrl/mouse.h (limited to 'src/ctrl/mouse.h') 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 -- cgit v1.2.3