From 1b593fd56b0a67ccd286d4811ee9b9685de0b122 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sun, 3 Sep 2017 02:58:38 +0200 Subject: [PATCH] Qt: Implement TAS/Movie shortcuts --- Source/Core/DolphinQt2/HotkeyScheduler.cpp | 10 ++++++++++ Source/Core/DolphinQt2/HotkeyScheduler.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/Source/Core/DolphinQt2/HotkeyScheduler.cpp b/Source/Core/DolphinQt2/HotkeyScheduler.cpp index e938663826..e3aa7750c9 100644 --- a/Source/Core/DolphinQt2/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt2/HotkeyScheduler.cpp @@ -162,6 +162,16 @@ void HotkeyScheduler::Run() auto& settings = Settings::Instance(); + // Recording + if (IsHotkey(HK_START_RECORDING)) + emit StartRecording(); + + if (IsHotkey(HK_EXPORT_RECORDING)) + emit ExportRecording(); + + if (IsHotkey(HK_READ_ONLY_MODE)) + emit ToggleReadOnlyMode(); + // Volume if (IsHotkey(HK_VOLUME_DOWN)) settings.DecreaseVolume(3); diff --git a/Source/Core/DolphinQt2/HotkeyScheduler.h b/Source/Core/DolphinQt2/HotkeyScheduler.h index 2deebbce16..08ff20b725 100644 --- a/Source/Core/DolphinQt2/HotkeyScheduler.h +++ b/Source/Core/DolphinQt2/HotkeyScheduler.h @@ -28,6 +28,9 @@ signals: void SetStateSlotHotkey(int slot); void StateLoadSlotHotkey(); void StateSaveSlotHotkey(); + void StartRecording(); + void ExportRecording(); + void ToggleReadOnlyMode(); private: void Run();