mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
Merge branch 'main' into lua_audio
This commit is contained in:
commit
98352627ec
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