You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not use this function to implement things like camera controls. GLFW
already provides the `GLFW_CURSOR_DISABLED` cursor mode that hides the
cursor, transparently re-centres it and provides unconstrained cursor
motion. See @ref glfwSetInputMode for more information.
One should call glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); instead of glfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE);. See this page for more information.
P.S. Somehow this doesn't work properly on my Mac so I had to call glfwSetCursorPos even though, but it increased my mouse update speed (before smth like 5 seconds, now definitely more).
The text was updated successfully, but these errors were encountered:
As written in the docstring of glfwSetCursorPos:
One should call
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
instead ofglfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE);
. See this page for more information.P.S. Somehow this doesn't work properly on my Mac so I had to call glfwSetCursorPos even though, but it increased my mouse update speed (before smth like 5 seconds, now definitely more).
The text was updated successfully, but these errors were encountered: