PAD/Core bugfix for #6472

Bugfix for https://github.com/PCSX2/pcsx2/issues/6472 which was introduced by hold turbo changes
This commit is contained in:
Christian Murphy 2022-06-20 19:05:05 +01:00 committed by refractionpcsx2
parent bb336f1bc7
commit 1b65f5f164
1 changed files with 8 additions and 0 deletions

View File

@ -1711,6 +1711,14 @@ DEFINE_HOTKEY("ToggleFrameLimit", "System", "Toggle Frame Limit", [](bool presse
}
})
DEFINE_HOTKEY("ToggleTurbo", "System", "Toggle Turbo", [](bool pressed) {
if (!pressed)
{
VMManager::SetLimiterMode((EmuConfig.LimiterMode != LimiterModeType::Turbo) ?
LimiterModeType::Turbo :
LimiterModeType::Nominal);
}
})
DEFINE_HOTKEY("HoldTurbo", "System", "Turbo (Hold)", [](bool pressed) {
if (pressed && !s_limiter_mode_prior_to_hold_interaction.has_value())
{
s_limiter_mode_prior_to_hold_interaction = VMManager::GetLimiterMode();