From 6bacc01ec853f91e550fbcb39f2f553eaaf44c47 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Oct 2017 01:27:33 +0300 Subject: Replace some SDL2 function calls to lower level functions. --- src/input/keyboardconfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input/keyboardconfig.cpp') 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(key))); + return SDL_GetScancodeName( + static_cast(key)); #else // USE_SDL2 return SDL_GetKeyName(static_cast(key)); -- cgit v1.2.3-60-g2f50