Frontend: Add hotkey for toggling speed limiter

This commit is contained in:
Connor McLaughlin 2019-10-29 01:57:38 +10:00
parent 772ef27a55
commit 3ad6b005a8

View file

@ -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)