Zwip-Zwap Zapony
Member
When working on customizable menu controls (still working on it), I noticed a potential error, tested it to see if it would happen in-game, and it does happen.
Specifically, if you hold one of the two Shift buttons, stuff you type becomes upper-case, holding the other also makes it upper-case... but releasing Shift makes it become lower-case, even if the other Shift is still held.
This happens in the console on the title screen, the console in-game, and the chat in-game, and probably everywhere else that considers Shifts too.
Relevant code, in src/m_menu.c at lines 2083-2087:
This code sets "shiftdown" to false if you release the left or right Shift keys, but it doesn't check if you're holding the other Shift key first. This is an extremely minor issue, though.
Specifically, if you hold one of the two Shift buttons, stuff you type becomes upper-case, holding the other also makes it upper-case... but releasing Shift makes it become lower-case, even if the other Shift is still held.
This happens in the console on the title screen, the console in-game, and the chat in-game, and probably everywhere else that considers Shifts too.
Relevant code, in src/m_menu.c at lines 2083-2087:
Code:
if (ev->type == ev_keyup && (ev->data1 == KEY_LSHIFT || ev->data1 == KEY_RSHIFT))
{
shiftdown = false;
return false;
}
Last edited by a moderator: