added a couple keys to console/key, and added append to string

This commit is contained in:
herbglitch 2024-07-08 04:37:47 -06:00
parent 3f5e631388
commit 7f0120f0c8
4 changed files with 60 additions and 3 deletions

View file

@ -147,6 +147,9 @@ ARC_ConsoleKey ARC_Keyboard_GetConsoleKey(enum ARC_ConsoleKey_Key key){
case ARC_KEY_RIGHT:
return (ARC_ConsoleKey){ KEY_RIGHT };
case ARC_KEY_BACKSPACE:
return (ARC_ConsoleKey){ KEY_BACKSPACE };
//TODO: This is escape and alt, need to fix
case ARC_KEY_ESC:
return (ARC_ConsoleKey){ 27 };
@ -158,4 +161,4 @@ ARC_ConsoleKey ARC_Keyboard_GetConsoleKey(enum ARC_ConsoleKey_Key key){
uint8_t ARC_ConsoleKey_GetCharFromKey(ARC_ConsoleKey *consoleKey){
return consoleKey->key;
}
}