input: fastforward hotkey

This commit is contained in:
Anime 2025-03-19 16:15:41 +02:00
parent 5a17e983aa
commit dc2d0901e6
3 changed files with 5 additions and 0 deletions

View file

@ -8,6 +8,7 @@ const std::unordered_map<uHotkey*, std::function<void(void)>> HotkeySettings::s_
{&s_cfgHotkeys.toggleFullscreenAlt, [](void) { s_mainWindow->ShowFullScreen(!s_mainWindow->IsFullScreen()); }},
{&s_cfgHotkeys.exitFullscreen, [](void) { s_mainWindow->ShowFullScreen(false); }},
{&s_cfgHotkeys.takeScreenshot, [](void) { g_window_info.has_screenshot_request = true; }},
{&s_cfgHotkeys.toggleFastForward, [](void) { ActiveSettings::SetTimerShiftFactor((ActiveSettings::GetTimerShiftFactor() < 3) ? 3 : 1); }},
};
struct HotkeyEntry
@ -34,6 +35,7 @@ HotkeySettings::HotkeySettings(wxWindow* parent)
CreateHotkey("Toggle fullscreen", s_cfgHotkeys.toggleFullscreen);
CreateHotkey("Take screenshot", s_cfgHotkeys.takeScreenshot);
CreateHotkey("Toggle fast-forward", s_cfgHotkeys.toggleFastForward);
m_sizer->SetSizeHints(this);
}