]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/joystick.cpp
Moving resources out of main directory and into res where they belong.
[virtualjaguar] / src / joystick.cpp
index bfc81ddfc6d70322b54061abf29a690187d8bb76..82057d9aa7d832abacfbafa137f34218dd9d6e85 100644 (file)
@@ -54,7 +54,11 @@ bool iLeft, iRight, iToggle = false;
 bool keyHeld1 = false, keyHeld2 = false, keyHeld3 = false;
 int objectPtr = 0;
 bool startMemLog = false;
+extern bool doDSPDis, doGPUDis;
 
+bool blitterSingleStep = false;
+bool bssGo = false;
+bool bssHeld = false;
 
 void joystick_init(void)
 {
@@ -126,8 +130,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 +205,25 @@ void joystick_exec(void)
                startMemLog = true;
        if (keystate[SDLK_r])
                WriteLog("\n--------> MARK!\n\n");
+       if (keystate[SDLK_t])
+               doDSPDis = true;
+       if (keystate[SDLK_y])
+               doGPUDis = true;
+
+       // BLITTER single step
+       if (keystate[SDLK_F5])
+               blitterSingleStep = true;
+
+       if (keystate[SDLK_F6])
+       {
+               if (!bssHeld)
+               {
+                       bssHeld = true;
+                       bssGo = true;
+               }
+       }
+       else
+               bssHeld = false;
 
        // Joystick support [nwagenaar]