A more through out attempt to lock the mouse
This commit is contained in:
parent
66e13cf1cc
commit
40a037f603
|
@ -1320,6 +1320,7 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_RaiseWindow(window);
|
SDL_RaiseWindow(window);
|
||||||
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
SDL_SetWindowGrab(window, SDL_TRUE);
|
SDL_SetWindowGrab(window, SDL_TRUE);
|
||||||
|
|
||||||
// Renderer-specific stuff
|
// Renderer-specific stuff
|
||||||
|
|
Loading…
Reference in New Issue