summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-26 01:27:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-26 01:27:33 +0300
commit6bacc01ec853f91e550fbcb39f2f553eaaf44c47 (patch)
tree4aa5144745866aadd8e1e37768caedb2e592da55 /src/input
parent03378679c6e7b5833ddca59d9aacc22a22f7654c (diff)
downloadplus-6bacc01ec853f91e550fbcb39f2f553eaaf44c47.tar.gz
plus-6bacc01ec853f91e550fbcb39f2f553eaaf44c47.tar.bz2
plus-6bacc01ec853f91e550fbcb39f2f553eaaf44c47.tar.xz
plus-6bacc01ec853f91e550fbcb39f2f553eaaf44c47.zip
Replace some SDL2 function calls to lower level functions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/keyboardconfig.cpp4
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));