projects
/
voxel-shooter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df09c2f
)
smooth cursor
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Fri, 17 Dec 2021 04:33:14 +0000
(22:33 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Fri, 17 Dec 2021 04:33:14 +0000
(22:33 -0600)
src/main.onyx
patch
|
blob
|
history
diff --git
a/src/main.onyx
b/src/main.onyx
index e59602d217dbd5c43c6ddf9a32b429e16fb89849..463dce4d3f465c24a7466cbbeba8c9d67b54f69c 100644
(file)
--- 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) {