mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: cursor is not hidden in wayland if previously changed by glfwSetCursor
This commit is contained in:
parent
bb44b4186b
commit
6896fa433c
1 changed files with 1 additions and 0 deletions
|
|
@ -294,6 +294,7 @@ public:
|
|||
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
||||
} else {
|
||||
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
|
||||
glfwSetCursor(window, nullptr);
|
||||
}
|
||||
cursorLocked = !cursorLocked;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue