mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11: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);
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
||||||
} else {
|
} else {
|
||||||
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
|
||||||
|
glfwSetCursor(window, nullptr);
|
||||||
}
|
}
|
||||||
cursorLocked = !cursorLocked;
|
cursorLocked = !cursorLocked;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue