ffwd (f1) fix, please test!

This commit is contained in:
dinkc64 2014-10-20 05:32:10 +00:00
parent 843fbd3440
commit 2435c725b2
1 changed files with 8 additions and 2 deletions

View File

@ -29,7 +29,7 @@ static bool bAppDoFast = 0;
static int nFastSpeed = 6;
// For System Macros (below)
static int prevPause = 0, prevSState = 0, prevLState = 0, prevUState = 0;
static int prevPause = 0, prevFFWD = 0, prevSState = 0, prevLState = 0, prevUState = 0;
UINT32 prevPause_debounce = 0;
static void CheckSystemMacros() // These are the Pause / FFWD macros added to the input dialog
@ -43,7 +43,13 @@ static void CheckSystemMacros() // These are the Pause / FFWD macros added to th
}
prevPause = macroSystemPause;
// FFWD
if (!kNetGame) bAppDoFast = macroSystemFFWD;
if (!kNetGame) {
if (macroSystemFFWD) {
bAppDoFast = 1; prevFFWD = 1;
} else if (prevFFWD) {
bAppDoFast = 0; prevFFWD = 0;
}
}
// Load State
if (macroSystemLoadState && macroSystemLoadState != prevLState) {
PostMessage(hScrnWnd, WM_KEYDOWN, VK_F9, 0);