Skip to content

Commit

Permalink
Qt: Implement TAS/Movie shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed Sep 3, 2017
1 parent fa0f636 commit 663f86a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/Core/DolphinQt2/HotkeyScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt2/HotkeyScheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class HotkeyScheduler : public QObject
void SetStateSlotHotkey(int slot);
void StateLoadSlotHotkey();
void StateSaveSlotHotkey();
void StartRecording();
void ExportRecording();
void ToggleReadOnlyMode();

private:
void Run();
Expand Down

0 comments on commit 663f86a

Please sign in to comment.