| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <thread> |
| 7 |
|
| 8 |
#include <QObject> |
| 9 |
|
| 10 |
#include "Common/CommonTypes.h" |
| 11 |
#include "Common/Flag.h" |
| 12 |
#include "InputCommon/InputProfile.h" |
| 13 |
|
| 14 |
class HotkeyScheduler : public QObject |
| 15 |
{ |
| 16 |
Q_OBJECT |
| 17 |
public: |
| 18 |
explicit HotkeyScheduler(); |
| 19 |
~HotkeyScheduler() override; |
| 20 |
|
| 21 |
void Start(); |
| 22 |
void Stop(); |
| 23 |
signals: |
| 24 |
void Open(); |
| 25 |
void EjectDisc(); |
| 26 |
void ChangeDisc(); |
| 27 |
|
| 28 |
void ExitHotkey(); |
| 29 |
void UnlockCursor(); |
| 30 |
void ActivateChat(); |
| 31 |
void RequestGolfControl(); |
| 32 |
void FullScreenHotkey(); |
| 33 |
void StopHotkey(); |
| 34 |
void ResetHotkey(); |
| 35 |
void TogglePauseHotkey(); |
| 36 |
void ScreenShotHotkey(); |
| 37 |
void RefreshGameListHotkey(); |
| 38 |
void SetStateSlotHotkey(int slot); |
| 39 |
void IncrementSelectedStateSlotHotkey(); |
| 40 |
void DecrementSelectedStateSlotHotkey(); |
| 41 |
void StateLoadSlotHotkey(); |
| 42 |
void StateSaveSlotHotkey(); |
| 43 |
void StateLoadSlot(int state); |
| 44 |
void StateSaveSlot(int state); |
| 45 |
void StateLoadLastSaved(int state); |
| 46 |
void StateSaveOldest(); |
| 47 |
void StateLoadFile(); |
| 48 |
void StateSaveFile(); |
| 49 |
void StateLoadUndo(); |
| 50 |
void StateSaveUndo(); |
| 51 |
void StartRecording(); |
| 52 |
void PlayRecording(); |
| 53 |
void ExportRecording(); |
| 54 |
void ToggleReadOnlyMode(); |
| 55 |
void ConnectWiiRemote(int id); |
| 56 |
#ifdef USE_RETRO_ACHIEVEMENTS |
| 57 |
void OpenAchievements(); |
| 58 |
#endif |
| 59 |
|
| 60 |
void Step(); |
| 61 |
void StepOver(); |
| 62 |
void StepOut(); |
| 63 |
void Skip(); |
| 64 |
|
| 65 |
void ShowPC(); |
| 66 |
void SetPC(); |
| 67 |
|
| 68 |
void ToggleBreakpoint(); |
| 69 |
void AddBreakpoint(); |
| 70 |
|
| 71 |
void SkylandersPortalHotkey(); |
| 72 |
void InfinityBaseHotkey(); |
| 73 |
|
| 74 |
private: |
| 75 |
void Run(); |
| 76 |
void CheckDebuggingHotkeys(); |
| 77 |
void CheckGBAHotkeys(); |
| 78 |
|
| 79 |
Common::Flag m_stop_requested; |
| 80 |
std::thread m_thread; |
| 81 |
|
| 82 |
InputProfile::ProfileCycler m_profile_cycler; |
| 83 |
}; |