QTfrontend/util/SDLInteraction.cpp
changeset 14537 e1ae6d8e84b0
parent 13520 c5365f05d4de
child 14872 8bba7492558d
--- a/QTfrontend/util/SDLInteraction.cpp	Wed Jan 09 16:27:57 2019 -0500
+++ b/QTfrontend/util/SDLInteraction.cpp	Wed Jan 09 22:09:27 2019 +0100
@@ -52,6 +52,13 @@
     lastchannel = 0;
     if(SDL_NumJoysticks())
         addGameControllerKeys();
+
+    int i = 0;
+    while(i < 1024 && sdlkeys[i][1][0] != '\0')
+        i++;
+    sprintf(sdlkeys[i][0], "none");
+    sprintf(sdlkeys[i++][1], "%s", HWApplication::translate("binds (keys)", unboundcontrol).toUtf8().constData());
+
     SDL_QuitSubSystem(SDL_INIT_JOYSTICK);
 
     m_soundMap = new QMap<QString,Mix_Chunk*>();