From 40a037f603b75fa5daa599ca08309c1b57e98507 Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Sun, 23 Dec 2018 14:54:14 -0500 Subject: [PATCH] A more through out attempt to lock the mouse --- src/sdl/i_video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index e7ac169e..4c80c389 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -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