summary refs log tree commit diff
path: root/src/GFX/Mouse.cpp
diff options
context:
space:
mode:
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