Upper-case keyboard key info

This commit is contained in:
Bruno Herbelin
2022-02-21 12:33:22 +01:00
parent 2e167d260d
commit 7e81ef37d7

View File

@@ -918,8 +918,7 @@ std::string Control::inputLabel(uint id)
if ( id >= INPUT_KEYBOARD_FIRST && id <= INPUT_KEYBOARD_LAST )
{
int k = GLFW_KEY_A + id -INPUT_KEYBOARD_FIRST;
label = std::string( glfwGetKeyName( k, glfwGetKeyScancode(k) ) );
label = std::string( 1, 'A' + (char) (id -INPUT_KEYBOARD_FIRST) );
}
else if ( id >= INPUT_NUMPAD_FIRST && id <= INPUT_NUMPAD_LAST )
{