2017-06-06 05:49:49 -06:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-04 19:22:19 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-06 05:49:49 -06:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <thread>
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2020-12-25 18:11:21 -07:00
|
|
|
#include "Common/CommonTypes.h"
|
2017-06-06 05:49:49 -06:00
|
|
|
#include "Common/Flag.h"
|
2018-04-13 22:51:32 -06:00
|
|
|
#include "InputCommon/InputProfile.h"
|
2017-06-06 05:49:49 -06:00
|
|
|
|
|
|
|
class HotkeyScheduler : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit HotkeyScheduler();
|
|
|
|
~HotkeyScheduler();
|
|
|
|
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
|
|
|
signals:
|
2018-05-09 00:27:04 -06:00
|
|
|
void Open();
|
|
|
|
void EjectDisc();
|
|
|
|
void ChangeDisc();
|
|
|
|
|
2017-06-06 05:49:49 -06:00
|
|
|
void ExitHotkey();
|
2021-05-09 04:28:04 -06:00
|
|
|
void UnlockCursor();
|
2019-03-24 08:57:36 -06:00
|
|
|
void ActivateChat();
|
2019-04-02 06:08:27 -06:00
|
|
|
void RequestGolfControl();
|
2017-06-06 05:49:49 -06:00
|
|
|
void FullScreenHotkey();
|
|
|
|
void StopHotkey();
|
2018-05-11 19:56:10 -06:00
|
|
|
void ResetHotkey();
|
2018-02-09 04:54:35 -07:00
|
|
|
void TogglePauseHotkey();
|
2017-06-06 05:49:49 -06:00
|
|
|
void ScreenShotHotkey();
|
2018-06-06 10:28:51 -06:00
|
|
|
void RefreshGameListHotkey();
|
2017-06-06 05:49:49 -06:00
|
|
|
void SetStateSlotHotkey(int slot);
|
|
|
|
void StateLoadSlotHotkey();
|
|
|
|
void StateSaveSlotHotkey();
|
2018-05-17 12:27:14 -06:00
|
|
|
void StateLoadSlot(int state);
|
|
|
|
void StateSaveSlot(int state);
|
|
|
|
void StateLoadLastSaved(int state);
|
|
|
|
void StateSaveOldest();
|
2018-07-01 08:14:29 -06:00
|
|
|
void StateLoadFile();
|
|
|
|
void StateSaveFile();
|
2018-05-17 12:27:14 -06:00
|
|
|
void StateLoadUndo();
|
|
|
|
void StateSaveUndo();
|
2017-09-02 18:58:38 -06:00
|
|
|
void StartRecording();
|
2021-09-24 08:31:36 -06:00
|
|
|
void PlayRecording();
|
2017-09-02 18:58:38 -06:00
|
|
|
void ExportRecording();
|
|
|
|
void ToggleReadOnlyMode();
|
2018-01-24 07:25:35 -07:00
|
|
|
void ConnectWiiRemote(int id);
|
2017-06-06 05:49:49 -06:00
|
|
|
|
2018-02-14 15:25:01 -07:00
|
|
|
void Step();
|
|
|
|
void StepOver();
|
|
|
|
void StepOut();
|
|
|
|
void Skip();
|
|
|
|
|
|
|
|
void ShowPC();
|
|
|
|
void SetPC();
|
|
|
|
|
|
|
|
void ToggleBreakpoint();
|
|
|
|
void AddBreakpoint();
|
|
|
|
|
2017-06-06 05:49:49 -06:00
|
|
|
private:
|
|
|
|
void Run();
|
2018-05-13 16:12:31 -06:00
|
|
|
void CheckDebuggingHotkeys();
|
2021-07-04 05:26:47 -06:00
|
|
|
void CheckGBAHotkeys();
|
2017-06-06 05:49:49 -06:00
|
|
|
|
|
|
|
Common::Flag m_stop_requested;
|
|
|
|
std::thread m_thread;
|
2018-04-13 22:51:32 -06:00
|
|
|
|
|
|
|
InputProfile::ProfileCycler m_profile_cycler;
|
2017-06-06 05:49:49 -06:00
|
|
|
};
|