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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GFX/Mouse.cpp b/src/GFX/Mouse.cpp
index 5cd2698..49f6972 100644
--- a/src/GFX/Mouse.cpp
+++ b/src/GFX/Mouse.cpp
@@ -3,7 +3,7 @@
 namespace MC::GFX {
 
 Vector<2> Mouse::update(GLFWwindow* window) {
-    double x, y;
+    Real x, y;
     glfwGetCursorPos(window, &x, &y);
 
     if (m_first_event) {
@@ -13,7 +13,7 @@ Vector<2> Mouse::update(GLFWwindow* window) {
         m_first_event = false;
     }
 
-    Vector<2> movement{static_cast<float>(x) - m_last_x,  static_cast<float>(y) - m_last_y};
+    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;