diff options
| author | Ray <[email protected]> | 2024-03-18 09:13:34 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-03-18 09:13:34 +0100 |
| commit | 28c232d856e8908a9f2675d5df56bc16f1e30acf (patch) | |
| tree | 4163aa51d776084714d2bbb06ad0778fd15efb90 /src | |
| parent | 9bb3d9977af16d12f24618d92c74004902fcfb39 (diff) | |
| download | raylib-28c232d856e8908a9f2675d5df56bc16f1e30acf.tar.gz raylib-28c232d856e8908a9f2675d5df56bc16f1e30acf.zip | |
Update rcore_desktop.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/rcore_desktop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/platforms/rcore_desktop.c b/src/platforms/rcore_desktop.c index 619c9dc9..e9d372f7 100644 --- a/src/platforms/rcore_desktop.c +++ b/src/platforms/rcore_desktop.c @@ -972,8 +972,7 @@ void EnableCursor(void) // Set cursor position in the middle SetMousePosition(CORE.Window.screen.width/2, CORE.Window.screen.height/2); - if (glfwRawMouseMotionSupported()) - glfwSetInputMode(platform.handle, GLFW_RAW_MOUSE_MOTION, GLFW_FALSE); + if (glfwRawMouseMotionSupported()) glfwSetInputMode(platform.handle, GLFW_RAW_MOUSE_MOTION, GLFW_FALSE); CORE.Input.Mouse.cursorHidden = false; } @@ -986,8 +985,7 @@ void DisableCursor(void) // Set cursor position in the middle SetMousePosition(CORE.Window.screen.width/2, CORE.Window.screen.height/2); - if (glfwRawMouseMotionSupported()) - glfwSetInputMode(platform.handle, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE); + if (glfwRawMouseMotionSupported()) glfwSetInputMode(platform.handle, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE); CORE.Input.Mouse.cursorHidden = true; } |
