mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-05 00:12:16 +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);
|
memmove(&w_chat[c_input - 1], &w_chat[c_input], strlen(w_chat) - c_input + 1);
|
||||||
c_input--;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue