mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Fix broken mouse release while in menu/console.
This commit is contained in:
parent
69661e7cbd
commit
5338566852
2 changed files with 10 additions and 1 deletions
|
@ -606,6 +606,11 @@ IN_KeyboardInit(Key_Event_fp_t fp)
|
|||
in_relativemode = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||
in_relativemode = false;
|
||||
}
|
||||
#else
|
||||
SDL_EnableUNICODE(0);
|
||||
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
|
||||
|
|
|
@ -726,7 +726,11 @@ void GLimp_GrabInput(qboolean grab)
|
|||
in_relativemode = true;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||
in_relativemode = false;
|
||||
}
|
||||
#else
|
||||
SDL_WM_GrabInput(grab ? SDL_GRAB_ON : SDL_GRAB_OFF);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue