mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Merge branch 'alwaysgrabmouse-fix' into 'next'
Fix mouse buttons not working in menus with alwaysgrabmouse on Closes #1257 See merge request STJr/SRB2!2449
This commit is contained in:
commit
6b160747d8
1 changed files with 2 additions and 0 deletions
|
@ -382,6 +382,8 @@ static INT32 Impl_SDL_Scancode_To_Keycode(SDL_Scancode code)
|
|||
|
||||
static boolean ShouldIgnoreMouse(void)
|
||||
{
|
||||
if (cv_alwaysgrabmouse.value)
|
||||
return false;
|
||||
if (menuactive)
|
||||
return !M_MouseNeeded();
|
||||
if (paused || con_destlines || chat_on)
|
||||
|
|
Loading…
Reference in a new issue