summaryrefslogtreecommitdiff
path: root/src/snes9x.h
diff options
context:
space:
mode:
authorMikael Brunnhede2019-05-05 23:58:30 +0200
committerMikael Brunnhede2019-05-05 23:58:30 +0200
commit30841f5881b3b63e64680a502c541ac583bcccfd (patch)
tree5a58bba7503650b97eaf60bc72fba0f7d95bad3f /src/snes9x.h
parent6064e58855c7f3acc76ad55ce4ea2af985fe3c59 (diff)
downloadsnes9x2002-30841f5881b3b63e64680a502c541ac583bcccfd.tar.gz
snes9x2002-30841f5881b3b63e64680a502c541ac583bcccfd.tar.bz2
snes9x2002-30841f5881b3b63e64680a502c541ac583bcccfd.zip
Port the input lag fix already present in the other snes9x cores. With this fix active, the main loop exit occurs right after generating the finished frame, but before reading the input. This means each new frame begins with reading input, then running game logic, ensuring the input used is as fresh as possible.
Diffstat (limited to 'src/snes9x.h')
-rw-r--r--src/snes9x.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/snes9x.h b/src/snes9x.h
index 3bc6df0..424cce8 100644
--- a/src/snes9x.h
+++ b/src/snes9x.h
@@ -378,6 +378,10 @@ extern SCPUState CPU;
extern SSNESGameFixes SNESGameFixes;
extern char String [513];
+#ifdef LAGFIX
+extern bool8 finishedFrame;
+#endif
+
void S9xExit(void);
void S9xMessage(int type, int number, const char* message);
void S9xLoadSDD1Data(void);