diff --git a/src/gui/gui.cc b/src/gui/gui.cc index 9d9c22432..a8cd2524e 100644 --- a/src/gui/gui.cc +++ b/src/gui/gui.cc @@ -1059,6 +1059,11 @@ void PCSX::GUI::startFrame() { g_system->softReset(); } } + + if (ImGui::IsKeyPressed(ImGuiKey_Tab)) { + m_turboEnabled = !m_turboEnabled; + g_emulator->settings.get() = m_turboEnabled ? 200 : 100; + } } void PCSX::GUI::setViewport() { glViewport(0, 0, m_renderSize.x, m_renderSize.y); } @@ -1504,6 +1509,10 @@ in Configuration->Emulation, restart PCSX-Redux, then try again.)")); } else { ImGui::TextUnformatted(_("Idle")); } + if (m_turboEnabled) { + ImGui::Separator(); + ImGui::TextUnformatted(_("Turbo")); + } ImGui::EndMainMenuBar(); } diff --git a/src/gui/gui.h b/src/gui/gui.h index 29f73abd7..ab0d17434 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -324,6 +324,7 @@ class GUI final : public UI { bool m_showHandles = false; bool m_showAbout = false; bool m_showInterruptsScaler = false; + bool m_turboEnabled = false; Widgets::Log m_log = {settings.get().value}; struct MemoryEditorWrapper { MemoryEditorWrapper(GUI *gui, bool &show, size_t &offsetAddr, size_t baseAddr = 0x0000)