From: Brendan Hansen Date: Fri, 17 Dec 2021 04:33:14 +0000 (-0600) Subject: smooth cursor X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=bed30dd75c543e737919d03d5d00e9b06ef56e70;p=voxel-shooter.git smooth cursor --- diff --git a/src/main.onyx b/src/main.onyx index e59602d..463dce4 100644 --- a/src/main.onyx +++ b/src/main.onyx @@ -17,6 +17,10 @@ create_window :: () => { glfwSetKeyCallback(window, "on_key"); glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); + + if glfwRawMouseMotionSupported() == GLFW_TRUE { + glfwSetInputMode(window, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE); + } } #export "on_resize" (window: GLFWwindow_p, width, height: u32) {