]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/joystick.cpp
Changes for 1.0.7 update
[virtualjaguar] / src / joystick.cpp
index bfc81ddfc6d70322b54061abf29a690187d8bb76..edf8270e90c4069a728cba68d2c658388374bd10 100644 (file)
@@ -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]