mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Talk key is a two-way toggle for non-keyboard binds
This commit is contained in:
parent
c0f1dbd850
commit
ddf310d135
1 changed files with 4 additions and 1 deletions
|
|
@ -1155,7 +1155,10 @@ boolean HU_Responder(event_t *ev)
|
|||
c_input = 0; // reset input cursor
|
||||
chat_scrollmedown = true; // you hit enter, so you might wanna autoscroll to see what you just sent. :)
|
||||
}
|
||||
else if (c == KEY_ESCAPE)
|
||||
else if (c == KEY_ESCAPE
|
||||
|| ((c == gamecontrol[gc_talkkey][0] || c == gamecontrol[gc_talkkey][1]
|
||||
|| c == gamecontrol[gc_teamkey][0] || c == gamecontrol[gc_teamkey][1])
|
||||
&& c >= KEY_MOUSE1)) // If it's not a keyboard key, then the chat button is used as a toggle.
|
||||
{
|
||||
chat_on = false;
|
||||
c_input = 0; // reset input cursor
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue