mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-09 04:36:23 +00:00
Support delete key in chatbox
This commit is contained in:
parent
94f691f216
commit
47c7351928
1 changed files with 7 additions and 0 deletions
|
|
@ -1240,6 +1240,13 @@ boolean HU_Responder(event_t *ev)
|
|||
memmove(&w_chat[c_input - 1], &w_chat[c_input], strlen(w_chat) - c_input + 1);
|
||||
c_input--;
|
||||
}
|
||||
else if (c == KEY_DEL)
|
||||
{
|
||||
if (CHAT_MUTE || c_input >= strlen(w_chat))
|
||||
return true;
|
||||
|
||||
memmove(&w_chat[c_input], &w_chat[c_input + 1], strlen(w_chat) - c_input);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue