Qt: Implement TAS/Movie shortcuts

This commit is contained in:
spycrab 2017-09-03 02:58:38 +02:00
parent 0e7ed3514f
commit 1b593fd56b
2 changed files with 13 additions and 0 deletions

View File

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

View File

@ -28,6 +28,9 @@ signals:
void SetStateSlotHotkey(int slot);
void StateLoadSlotHotkey();
void StateSaveSlotHotkey();
void StartRecording();
void ExportRecording();
void ToggleReadOnlyMode();
private:
void Run();