mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-10-19 03:32:41 +00:00
Fix how scancodes are read for text input
May fix issue where spanish keyboards are unable to press enter to chat
This commit is contained in:
parent
feb9bead02
commit
adb7fe86eb
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ bool keyboard_on_key_down(int scancode) {
|
||||||
#endif
|
#endif
|
||||||
if (sInTextInput) {
|
if (sInTextInput) {
|
||||||
// perform text-input-specific actions
|
// perform text-input-specific actions
|
||||||
switch (scancode) {
|
switch (scancode & 0xFF) {
|
||||||
case SCANCODE_BACKSPACE:
|
case SCANCODE_BACKSPACE:
|
||||||
gTextInput[max(strlen(gTextInput) - 1, 0)] = '\0';
|
gTextInput[max(strlen(gTextInput) - 1, 0)] = '\0';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue