mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
Frontend: Add hotkey for toggling speed limiter
This commit is contained in:
parent
772ef27a55
commit
3ad6b005a8
|
@ -598,6 +598,16 @@ void SDLInterface::HandleSDLKeyEvent(const SDL_Event* event)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_SCANCODE_HOME:
|
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:
|
case SDL_SCANCODE_END:
|
||||||
{
|
{
|
||||||
if (pressed)
|
if (pressed)
|
||||||
|
|
Loading…
Reference in a new issue