cursor movement fix

This commit is contained in:
MihailRis 2024-03-06 16:34:26 +03:00
parent 447be2f604
commit 3e929cd97c

View File

@ -54,6 +54,7 @@ bool Events::jclicked(int button) {
}
void Events::toggleCursor() {
cursor_drag = false;
_cursor_locked = !_cursor_locked;
Window::setCursorMode(_cursor_locked ? GLFW_CURSOR_DISABLED : GLFW_CURSOR_NORMAL);
}