Qt: Implement TAS/Movie shortcuts
This commit is contained in:
parent
0e7ed3514f
commit
1b593fd56b
|
@ -162,6 +162,16 @@ void HotkeyScheduler::Run()
|
||||||
|
|
||||||
auto& settings = Settings::Instance();
|
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
|
// Volume
|
||||||
if (IsHotkey(HK_VOLUME_DOWN))
|
if (IsHotkey(HK_VOLUME_DOWN))
|
||||||
settings.DecreaseVolume(3);
|
settings.DecreaseVolume(3);
|
||||||
|
|
|
@ -28,6 +28,9 @@ signals:
|
||||||
void SetStateSlotHotkey(int slot);
|
void SetStateSlotHotkey(int slot);
|
||||||
void StateLoadSlotHotkey();
|
void StateLoadSlotHotkey();
|
||||||
void StateSaveSlotHotkey();
|
void StateSaveSlotHotkey();
|
||||||
|
void StartRecording();
|
||||||
|
void ExportRecording();
|
||||||
|
void ToggleReadOnlyMode();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Run();
|
void Run();
|
||||||
|
|
Loading…
Reference in New Issue