mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
cursor movement fix
This commit is contained in:
parent
447be2f604
commit
3e929cd97c
1 changed files with 1 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ bool Events::jclicked(int button) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Events::toggleCursor() {
|
void Events::toggleCursor() {
|
||||||
|
cursor_drag = false;
|
||||||
_cursor_locked = !_cursor_locked;
|
_cursor_locked = !_cursor_locked;
|
||||||
Window::setCursorMode(_cursor_locked ? GLFW_CURSOR_DISABLED : GLFW_CURSOR_NORMAL);
|
Window::setCursorMode(_cursor_locked ? GLFW_CURSOR_DISABLED : GLFW_CURSOR_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue