diff options
| author | Mel <einebeere@gmail.com> | 2023-07-08 03:25:44 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-08 03:25:44 +0200 |
| commit | fe2baedc760c2f29e2c720f6b1132a2de33c5430 (patch) | |
| tree | dfbe1c72a17805a3cab6e0d47433e9021890c9ca /src/GFX/Mouse.cpp | |
| parent | 41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59 (diff) | |
| download | meowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.tar.zst meowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.zip | |
Use own size types
Diffstat (limited to 'src/GFX/Mouse.cpp')
| -rw-r--r-- | src/GFX/Mouse.cpp | 4 |
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; |
