mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Make binding names layout-independent (bug 7908)
This commit is contained in:
parent
359600db83
commit
3d83585c46
3 changed files with 3 additions and 6 deletions
6
extern/oics/ICSInputControlSystem.cpp
vendored
6
extern/oics/ICSInputControlSystem.cpp
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue