projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ac301d
)
fixed bug in (still largely broken) single-step mode when using joystick
author
Holger Schemel
<info@artsoft.org>
Tue, 19 Dec 2017 21:02:18 +0000
(22:02 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:17 +0000
(23:21 +0100)
src/events.c
patch
|
blob
|
history
diff --git
a/src/events.c
b/src/events.c
index ea5312aecb1efbe79e8239e20ab69115c36a74e4..7a3f9987d4b09a80ebdc48c970c8eb118f3b4727 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-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);