* Add missing space button handler to the text input box.

This commit is contained in:
iProgramInCpp
2023-07-31 11:10:51 +03:00
parent 1a75690f52
commit 4393ef9679
2 changed files with 4 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ enum
AKEYCODE_BACKSLASH = VK_OEM_5, // '\|'
AKEYCODE_RIGHT_BRACKET=VK_OEM_6,// ']}'
AKEYCODE_APOSTROPHE = VK_OEM_7, // ''"'
AKEYCODE_SPACE = VK_SPACE,
AKEYCODE_0 = '0',
//...

View File

@@ -77,6 +77,9 @@ void TextInputBox::keyPressed(Minecraft* minecraft, int key)
case AKEYCODE_ARROW_RIGHT:
chr = '\003';
break;
case AKEYCODE_SPACE:
chr = ' ';
break;
case AKEYCODE_COMMA:
chr = bShiftPressed ? '<' : ',';
break;