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?
This commit is contained in:
Eidolon 2025-03-16 16:41:18 -05:00
parent 5f4298625c
commit 28e4440bb0

View file

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