Fix chat toggle not working

This commit is contained in:
wolfy852 2019-01-11 02:38:49 -06:00
parent d5e16dca63
commit 622509682a
1 changed files with 4 additions and 2 deletions

View File

@ -1184,8 +1184,10 @@ boolean HU_Responder(event_t *ev)
|| ev->data1 == KEY_LALT || ev->data1 == KEY_RALT)
return true;
// Ignore joystick hats
if (ev->data1 >= KEY_HAT1 && ev->data1 <= KEY_HAT1 + 3)
// Ignore joystick hats, except when the talk key is bound
if (ev->data1 >= KEY_HAT1 && ev->data1 <= KEY_HAT1+3
&& (ev->data1 != gamecontrol[gc_talkkey][0]
&& ev->data1 != gamecontrol[gc_talkkey][1]))
return false;
c = (INT32)ev->data1;