Skip to content
Permalink
Browse files
Merge pull request #10122 from malleoz/record-hotkeys-without-game-ru…
…nning

HotkeyScheduler: Check for certain hotkeys in game list
  • Loading branch information
lioncash committed Sep 23, 2021
2 parents 0d8ad5f + e5051c5 commit 753a159
Showing 1 changed file with 16 additions and 15 deletions.
@@ -169,12 +169,25 @@ void HotkeyScheduler::Run()

HotkeyManagerEmu::GetStatus(true);

if (!Core::IsRunningAndStarted())
continue;

// Open
if (IsHotkey(HK_OPEN))
emit Open();

// Refresh Game List
if (IsHotkey(HK_REFRESH_LIST))
emit RefreshGameListHotkey();

// Recording
if (IsHotkey(HK_START_RECORDING))
emit StartRecording();

// Exit
if (IsHotkey(HK_EXIT))
emit ExitHotkey();

if (!Core::IsRunningAndStarted())
continue;

// Disc

if (IsHotkey(HK_EJECT_DISC))
@@ -192,10 +205,6 @@ void HotkeyScheduler::Run()
Common::SleepCurrentThread(100);
}

// Refresh Game List
if (IsHotkey(HK_REFRESH_LIST))
emit RefreshGameListHotkey();

// Pause and Unpause
if (IsHotkey(HK_PLAY_PAUSE))
emit TogglePauseHotkey();
@@ -215,10 +224,6 @@ void HotkeyScheduler::Run()
if (IsHotkey(HK_SCREENSHOT))
emit ScreenShotHotkey();

// Exit
if (IsHotkey(HK_EXIT))
emit ExitHotkey();

// Unlock Cursor
if (IsHotkey(HK_UNLOCK_CURSOR))
emit UnlockCursor();
@@ -232,10 +237,6 @@ void HotkeyScheduler::Run()
if (IsHotkey(HK_REQUEST_GOLF_CONTROL))
emit RequestGolfControl();

// Recording
if (IsHotkey(HK_START_RECORDING))
emit StartRecording();

if (IsHotkey(HK_EXPORT_RECORDING))
emit ExportRecording();

0 comments on commit 753a159

Please sign in to comment.