summary refs log tree commit diff
path: root/src/GFX/Mouse.cpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-02-15 11:33:11 +0100
committerMel <einebeere@gmail.com>2024-02-15 11:34:28 +0100
commit92f63bbdbfc214849c203511bbcb1be0a4865588 (patch)
treed82e1b31e583b5cc9538f61cad696dab5dbd84dc /src/GFX/Mouse.cpp
parent87ef308220addbe4406006ceb802a7364e6f1a05 (diff)
downloadmeowcraft-92f63bbdbfc214849c203511bbcb1be0a4865588.tar.zst
meowcraft-92f63bbdbfc214849c203511bbcb1be0a4865588.zip
Proper input system
Diffstat (limited to 'src/GFX/Mouse.cpp')
-rw-r--r--src/GFX/Mouse.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/GFX/Mouse.cpp b/src/GFX/Mouse.cpp
deleted file mode 100644
index 49f6972..0000000
--- a/src/GFX/Mouse.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "Mouse.hpp"
-
-namespace MC::GFX {
-
-Vector<2> Mouse::update(GLFWwindow* window) {
-    Real x, y;
-    glfwGetCursorPos(window, &x, &y);
-
-    if (m_first_event) {
-        m_last_x = x;
-        m_last_y = y;
-
-        m_first_event = false;
-    }
-
-    Vector<2> movement{static_cast<Real>(x) - m_last_x,  static_cast<Real>(y) - m_last_y};
-
-    m_last_x = x;
-    m_last_y = y;
-
-    return movement;
-}
-
-}
\ No newline at end of file