From fdbfa8e36f85eee051fc562f1a8588970257a20f Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 6 Oct 2022 02:48:43 +0200 Subject: Rotating camera with mouse --- src/Window.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Window.cpp') 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() { -- cgit 1.4.1