diff --git a/src/gui/gui.cc b/src/gui/gui.cc index a30a26dd2..794e975f7 100644 --- a/src/gui/gui.cc +++ b/src/gui/gui.cc @@ -1166,6 +1166,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); } @@ -1621,6 +1626,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 a0ce60a01..dcb01ac6a 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -338,6 +338,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)