update turbo: when counter > turbo_delay, fire then reset count

This commit is contained in:
retro-wertz
2017-04-02 02:50:22 +08:00
committed by retro-wertz
parent c58d035543
commit 44452c528a

View File

@@ -1144,6 +1144,7 @@ static void FCEUD_UpdateInput(void)
if (turbo_p0_toggle[i-8] > turbo_delay) {
// Reset the toggle if
// delay value is reached
pad[0] |= bindmap[i].nes;
turbo_p0_toggle[i-8] = 0;
}
} else {
@@ -1164,6 +1165,7 @@ static void FCEUD_UpdateInput(void)
if (turbo_p1_toggle[i-8] > turbo_delay) {
// Reset the toggle if
// delay value is reached
pad[1] |= bindmap[i].nes;
turbo_p1_toggle[i-8] = 0;
}
} else {