mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
5f4298625c
commit
28e4440bb0
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue