diff options
| author | Mel <einebeere@gmail.com> | 2022-10-21 01:03:18 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-21 01:03:18 +0200 |
| commit | 6ed978051668c08f5a957c97570f364dd580c807 (patch) | |
| tree | e3db93c52fcd86e26bc859d46e755290d2a7f40c /src/GFX/Mouse.hpp | |
| parent | 0464a83dfaebaa75d6e2d3b7431e84ebd83fccfd (diff) | |
| download | meowcraft-6ed978051668c08f5a957c97570f364dd580c807.tar.zst meowcraft-6ed978051668c08f5a957c97570f364dd580c807.zip | |
Namespace and Folder refactor
Diffstat (limited to 'src/GFX/Mouse.hpp')
| -rw-r--r-- | src/GFX/Mouse.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/GFX/Mouse.hpp b/src/GFX/Mouse.hpp new file mode 100644 index 0000000..3ed57a2 --- /dev/null +++ b/src/GFX/Mouse.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include <cstdint> +#include <GLFW/glfw3.h> +#include "../Math/Vector.hpp" + +namespace MC::GFX { + +class Mouse { +public: + Mouse() = default; + + Vector<2> update(GLFWwindow* window); +private: + bool m_first_event = true; + + float m_last_x = 0.0f; + float m_last_y = 0.0f; +}; + +} \ No newline at end of file |
