mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-15 07:51:50 +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;
|
cursorDrag = false;
|
||||||
cursorLocked = !cursorLocked;
|
cursorLocked = !cursorLocked;
|
||||||
SDL_SetWindowRelativeMouseMode(window.getSdlWindow(), cursorLocked);
|
SDL_SetWindowRelativeMouseMode(window.getSdlWindow(), cursorLocked);
|
||||||
|
SDL_SetWindowMouseGrab(window.getSdlWindow(), cursorLocked);
|
||||||
}
|
}
|
||||||
|
|
||||||
Bindings& SDLInput::getBindings() {
|
Bindings& SDLInput::getBindings() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue