Added tilde key support!!! (#928)

This commit is contained in:
TheDiagnosed9mm
2024-08-23 05:24:41 +01:00
committed by GitHub
parent 7e011dacd3
commit dc2cfa4bca
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -585,6 +585,9 @@ namespace wi::input
case KEYBOARD_BUTTON_TAB:
keycode = VK_TAB;
break;
case KEYBOARD_BUTTON_TILDE:
keycode = 192;
break;
#endif // _WIN32
default: break;
}
+1
View File
@@ -61,6 +61,7 @@ namespace wi::input
KEYBOARD_BUTTON_DECIMAL,
KEYBOARD_BUTTON_DIVIDE,
KEYBOARD_BUTTON_TAB,
KEYBOARD_BUTTON_TILDE,
CHARACTER_RANGE_START = 65, // letter A
+2
View File
@@ -309,6 +309,8 @@ namespace wi::input::sdlinput
return wi::input::KEYBOARD_BUTTON_DIVIDE;
case SDL_SCANCODE_TAB:
return wi::input::KEYBOARD_BUTTON_TAB;
case SDL_SCANCODE_GRAVE:
return wi::input::KEYBOARD_BUTTON_TILDE;
}