fix: cursor lock/unlock inconsistent behaviour on glfw, rgfw, sl (#5323)
This commit is contained in:
parent
46e8343a30
commit
cc83b2bd8e
1 changed files with 11 additions and 9 deletions
|
|
@ -1070,6 +1070,7 @@ void EnableCursor(void)
|
|||
|
||||
if (glfwRawMouseMotionSupported()) glfwSetInputMode(platform.handle, GLFW_RAW_MOUSE_MOTION, GLFW_FALSE);
|
||||
|
||||
CORE.Input.Mouse.cursorHidden = false;
|
||||
CORE.Input.Mouse.cursorLocked = false;
|
||||
}
|
||||
|
||||
|
|
@ -1083,6 +1084,7 @@ void DisableCursor(void)
|
|||
|
||||
if (glfwRawMouseMotionSupported()) glfwSetInputMode(platform.handle, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE);
|
||||
|
||||
CORE.Input.Mouse.cursorHidden = true;
|
||||
CORE.Input.Mouse.cursorLocked = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue