mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
Try fix ubuntu mouse grabbing
This commit is contained in:
parent
faaa746b7d
commit
52db37ae69
1 changed files with 1 additions and 0 deletions
|
|
@ -277,6 +277,7 @@ void SDLInput::toggleCursor() {
|
|||
cursorDrag = false;
|
||||
cursorLocked = !cursorLocked;
|
||||
SDL_SetWindowRelativeMouseMode(window.getSdlWindow(), cursorLocked);
|
||||
SDL_SetWindowMouseGrab(window.getSdlWindow(), cursorLocked);
|
||||
}
|
||||
|
||||
Bindings& SDLInput::getBindings() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue