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

View file

@ -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