A more through out attempt to lock the mouse

This commit is contained in:
Steel Titanium 2018-12-23 14:54:14 -05:00
parent 66e13cf1cc
commit 40a037f603
1 changed files with 1 additions and 0 deletions

View File

@ -1320,6 +1320,7 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
}
SDL_RaiseWindow(window);
SDL_SetRelativeMouseMode(SDL_TRUE);
SDL_SetWindowGrab(window, SDL_TRUE);
// Renderer-specific stuff