mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Qt: Implement "Reset" hotkey
This commit is contained in:
parent
f0c5b76186
commit
226b6888d6
@ -165,6 +165,10 @@ void HotkeyScheduler::Run()
|
||||
if (IsHotkey(HK_STOP))
|
||||
emit StopHotkey();
|
||||
|
||||
// Reset
|
||||
if (IsHotkey(HK_RESET))
|
||||
emit ResetHotkey();
|
||||
|
||||
// Frameskipping
|
||||
HandleFrameskipHotkeys();
|
||||
|
||||
|
@ -27,6 +27,7 @@ signals:
|
||||
void ExitHotkey();
|
||||
void FullScreenHotkey();
|
||||
void StopHotkey();
|
||||
void ResetHotkey();
|
||||
void TogglePauseHotkey();
|
||||
void ScreenShotHotkey();
|
||||
void SetStateSlotHotkey(int slot);
|
||||
|
@ -342,6 +342,7 @@ void MainWindow::ConnectHotkeys()
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::ExitHotkey, this, &MainWindow::close);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::TogglePauseHotkey, this, &MainWindow::TogglePause);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StopHotkey, this, &MainWindow::RequestStop);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::ResetHotkey, this, &MainWindow::Reset);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::ScreenShotHotkey, this, &MainWindow::ScreenShot);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::FullScreenHotkey, this, &MainWindow::FullScreen);
|
||||
|
||||
@ -351,7 +352,6 @@ void MainWindow::ConnectHotkeys()
|
||||
&MainWindow::StateSaveSlot);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::SetStateSlotHotkey, this,
|
||||
&MainWindow::SetStateSlot);
|
||||
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StartRecording, this,
|
||||
&MainWindow::OnStartRecording);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::ExportRecording, this,
|
||||
|
Loading…
Reference in New Issue
Block a user