mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Qt: Implement TAS/Movie shortcuts
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user