diff options
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/keyboardconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/keyboardconfig.cpp b/src/input/keyboardconfig.cpp index c67fb5151..7f2c9fca2 100644 --- a/src/input/keyboardconfig.cpp +++ b/src/input/keyboardconfig.cpp @@ -83,8 +83,8 @@ std::string KeyboardConfig::getKeyName(const int key) if (key > -1) { #ifdef USE_SDL2 - return SDL_GetKeyName(SDL_GetKeyFromScancode( - static_cast<SDL_Scancode>(key))); + return SDL_GetScancodeName( + static_cast<SDL_Scancode>(key)); #else // USE_SDL2 return SDL_GetKeyName(static_cast<SDLKey>(key)); |