Make binding names layout-independent (bug 7908)

This commit is contained in:
Andrei Kortunov 2024-03-29 11:46:04 +04:00
parent 359600db83
commit 3d83585c46
3 changed files with 3 additions and 6 deletions

View file

@ -802,11 +802,7 @@ namespace ICS
std::string InputControlSystem::scancodeToString(SDL_Scancode key)
{
SDL_Keycode code = SDL_GetKeyFromScancode(key);
if (code == SDLK_UNKNOWN)
return std::string(SDL_GetScancodeName(key));
else
return std::string(SDL_GetKeyName(code));
return std::string(SDL_GetScancodeName(key));
}
void InputControlSystem::adjustMouseRegion(Uint16 width, Uint16 height)