From bed30dd75c543e737919d03d5d00e9b06ef56e70 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 16 Dec 2021 22:33:14 -0600 Subject: [PATCH] smooth cursor --- src/main.onyx | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.25.1