fixed bug in (still largely broken) single-step mode when using joystick
authorHolger Schemel <info@artsoft.org>
Tue, 19 Dec 2017 21:02:18 +0000 (22:02 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:17 +0000 (23:21 +0100)
src/events.c

index ea5312aecb1efbe79e8239e20ab69115c36a74e4..7a3f9987d4b09a80ebdc48c970c8eb118f3b4727 100644 (file)
@@ -2343,7 +2343,12 @@ void HandleJoystick()
        return;
       }
 
-      if (tape.recording && tape.pausing && !tape.use_mouse)
+      if (tape.single_step && tape.recording && tape.pausing && !tape.use_mouse)
+      {
+       if (joystick & JOY_ACTION)
+         TapeTogglePause(TAPE_TOGGLE_AUTOMATIC);
+      }
+      else if (tape.recording && tape.pausing && !tape.use_mouse)
       {
        if (joystick & JOY_ACTION)
          TapeTogglePause(TAPE_TOGGLE_MANUAL);