From 3ad6b005a85e805c6332d292380407c958d60808 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 29 Oct 2019 01:57:38 +1000 Subject: [PATCH] Frontend: Add hotkey for toggling speed limiter --- src/duckstation/sdl_interface.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/duckstation/sdl_interface.cpp b/src/duckstation/sdl_interface.cpp index 931c8aa91..64f91cda5 100644 --- a/src/duckstation/sdl_interface.cpp +++ b/src/duckstation/sdl_interface.cpp @@ -598,6 +598,16 @@ void SDLInterface::HandleSDLKeyEvent(const SDL_Event* event) break; case SDL_SCANCODE_HOME: + { + if (pressed && !repeat && m_system) + { + m_speed_limiter_enabled = !m_speed_limiter_enabled; + UpdateAudioVisualSync(); + AddOSDMessage(m_speed_limiter_enabled ? "Speed limiter disabled" : "Speed limiter enabled"); + } + } + break; + case SDL_SCANCODE_END: { if (pressed)