diff --git a/src/pc/controller/controller_bind_mapping.c b/src/pc/controller/controller_bind_mapping.c index a255e6e4..cbde338f 100644 --- a/src/pc/controller/controller_bind_mapping.c +++ b/src/pc/controller/controller_bind_mapping.c @@ -1,7 +1,7 @@ #include #ifdef HAVE_SDL2 #include -#else +#else #ifdef HAVE_SDL #include @@ -145,7 +145,7 @@ const char* translate_bind_to_name(int bind) { if (sc == 0) { return name; } #ifdef HAVE_SDL2 - const char* sname = SDL_GetScancodeName(sc); + const char* sname = SDL_GetKeyName(SDL_GetKeyFromScancode(sc)); if (strlen(sname) <= 9) { return sname; } char* space = strchr(sname, ' ');