mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Fix mouse buttons not working in menus with alwaysgrabmouse on
This commit fixes #1257 by reintroducing something left out in commit
9f116c7c9e
. From my testing, it looks
look the behavior is the exact same regarding the lua hook script that
the original commit was fixing (#879).
This commit is contained in:
parent
47bcad4ab1
commit
ccadfd8157
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)
|
static boolean ShouldIgnoreMouse(void)
|
||||||
{
|
{
|
||||||
|
if (cv_alwaysgrabmouse.value)
|
||||||
|
return false;
|
||||||
if (menuactive)
|
if (menuactive)
|
||||||
return !M_MouseNeeded();
|
return !M_MouseNeeded();
|
||||||
if (paused || con_destlines || chat_on)
|
if (paused || con_destlines || chat_on)
|
||||||
|
|
Loading…
Reference in a new issue