X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fjoystick.cpp;h=edf8270e90c4069a728cba68d2c658388374bd10;hb=eea9addef354bf029c40083ac1f079987256a000;hp=bfc81ddfc6d70322b54061abf29a690187d8bb76;hpb=d076c9b777523f5c9d7cc05112b14fcb537f6a13;p=virtualjaguar diff --git a/src/joystick.cpp b/src/joystick.cpp index bfc81dd..edf8270 100644 --- a/src/joystick.cpp +++ b/src/joystick.cpp @@ -54,6 +54,7 @@ bool iLeft, iRight, iToggle = false; bool keyHeld1 = false, keyHeld2 = false, keyHeld3 = false; int objectPtr = 0; bool startMemLog = false; +extern bool doDSPDis; void joystick_init(void) @@ -126,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]) { @@ -195,6 +202,9 @@ void joystick_exec(void) startMemLog = true; if (keystate[SDLK_r]) WriteLog("\n--------> MARK!\n\n"); + if (keystate[SDLK_t]) + doDSPDis = true; + // Joystick support [nwagenaar]