From 622509682a08482060f96409e2dc6c8380224c6b Mon Sep 17 00:00:00 2001 From: wolfy852 Date: Fri, 11 Jan 2019 02:38:49 -0600 Subject: [PATCH] Fix chat toggle not working --- src/hu_stuff.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 89149a3f..4bd0994c 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -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;