X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fjoystick.cpp;h=edf8270e90c4069a728cba68d2c658388374bd10;hb=eea9addef354bf029c40083ac1f079987256a000;hp=b91acc5aa906f5b977d4a4815606d17fe8fee160;hpb=42b16b0d96def2ddcdd5e5b7872f4bdf72541e6b;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]) {