X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fjoystick.cpp;h=edf8270e90c4069a728cba68d2c658388374bd10;hb=a1ad40785ac6d954051e4e5882436da9a58cc3a6;hp=b91acc5aa906f5b977d4a4815606d17fe8fee160;hpb=2935277dd0aa1154571c2d83c70c04feb2a8888c;p=virtualjaguar diff --git a/src/joystick.cpp b/src/joystick.cpp index b91acc5..edf8270 100644 --- a/src/joystick.cpp +++ b/src/joystick.cpp @@ -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]) {