mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-04 00:11:06 +00:00
Make M_Responder respond to joy buttons only in-menu (multiplayer bug?)
This commit is contained in:
parent
b97ccc7b9a
commit
8c30c63b73
1 changed files with 36 additions and 36 deletions
|
@ -2082,7 +2082,9 @@ boolean M_Responder(event_t *ev)
|
|||
// (but still allow shift keyup so caps doesn't get stuck)
|
||||
return false;
|
||||
}
|
||||
else if (ev->type == ev_keydown)
|
||||
else if (menuactive)
|
||||
{
|
||||
if (ev->type == ev_keydown)
|
||||
{
|
||||
ch = ev->data1;
|
||||
|
||||
|
@ -2117,9 +2119,7 @@ boolean M_Responder(event_t *ev)
|
|||
break;
|
||||
}
|
||||
}
|
||||
else if (menuactive)
|
||||
{
|
||||
if (ev->type == ev_joystick && ev->data1 == 0 && joywait < I_GetTime())
|
||||
else if (ev->type == ev_joystick && ev->data1 == 0 && joywait < I_GetTime())
|
||||
{
|
||||
const INT32 jdeadzone = JOYAXISRANGE/4;
|
||||
if (ev->data3 != INT32_MAX)
|
||||
|
|
Loading…
Reference in a new issue