From 28e4440bb09b0b748b8aae48e03fa08fe955e05b Mon Sep 17 00:00:00 2001 From: Eidolon Date: Sun, 16 Mar 2025 16:41:18 -0500 Subject: [PATCH] Un-comment the mouse grab code This was not supposed to be commented out, but given RR doesn't use the mouse maybe I should just make a separate change to remove it all? --- src/sdl/i_video.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sdl/i_video.cpp b/src/sdl/i_video.cpp index d57b86b50..91b223535 100644 --- a/src/sdl/i_video.cpp +++ b/src/sdl/i_video.cpp @@ -366,10 +366,10 @@ static boolean IgnoreMouse(void) static void SDLdoGrabMouse(void) { - // SDL_ShowCursor(SDL_DISABLE); - // SDL_SetWindowGrab(window, SDL_TRUE); - // if (SDL_SetRelativeMouseMode(SDL_TRUE) == 0) // already warps mouse if successful - // wrapmouseok = SDL_TRUE; // TODO: is wrapmouseok or HalfWarpMouse needed anymore? + SDL_ShowCursor(SDL_DISABLE); + SDL_SetWindowGrab(window, SDL_TRUE); + if (SDL_SetRelativeMouseMode(SDL_TRUE) == 0) // already warps mouse if successful + wrapmouseok = SDL_TRUE; // TODO: is wrapmouseok or HalfWarpMouse needed anymore? } static void SDLdoUngrabMouse(void)