]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/joystick.cpp
Changes for 1.0.7 update
[virtualjaguar] / src / joystick.cpp
index b91acc5aa906f5b977d4a4815606d17fe8fee160..edf8270e90c4069a728cba68d2c658388374bd10 100644 (file)
@@ -127,8 +127,14 @@ void joystick_exec(void)
        if (keystate[vjs.p1KeyBindings[20]])
                joypad_0_buttons[BUTTON_d] = 0x01;
 
+       extern bool debounceRunKey;
     if (keystate[SDLK_ESCAPE])
-       finished = true;
+    {
+               if (!debounceRunKey)
+               finished = true;
+    }
+    else
+               debounceRunKey = false;
 
        if (keystate[SDLK_TAB])
        {