summary refs log tree commit diff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-06 02:48:43 +0200
committerMel <einebeere@gmail.com>2022-10-06 02:48:43 +0200
commitfdbfa8e36f85eee051fc562f1a8588970257a20f (patch)
treee861a56c50b1e8532bd71a21064d76d0c148ed3a /src/Window.cpp
parent731846a0c654b39e23c26f611470e401df404c9d (diff)
downloadmeowcraft-fdbfa8e36f85eee051fc562f1a8588970257a20f.tar.zst
meowcraft-fdbfa8e36f85eee051fc562f1a8588970257a20f.zip
Rotating camera with mouse
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index 413cd47..2f1c2c0 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -16,6 +16,7 @@ Window::Window(const char *title, uint32_t width, uint32_t height) {
     }
 
     glfwMakeContextCurrent(m_window);
+    glfwSetInputMode(m_window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
 }
 
 Window::~Window() {