2017-06-06 11:49:49 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <thread>
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "Common/Flag.h"
|
|
|
|
|
|
|
|
class HotkeyScheduler : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit HotkeyScheduler();
|
|
|
|
~HotkeyScheduler();
|
|
|
|
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
|
|
|
signals:
|
2018-05-09 06:27:04 +00:00
|
|
|
void Open();
|
|
|
|
void EjectDisc();
|
|
|
|
void ChangeDisc();
|
|
|
|
|
2017-06-06 11:49:49 +00:00
|
|
|
void ExitHotkey();
|
|
|
|
void FullScreenHotkey();
|
|
|
|
void StopHotkey();
|
2018-02-09 11:54:35 +00:00
|
|
|
void TogglePauseHotkey();
|
2017-06-06 11:49:49 +00:00
|
|
|
void ScreenShotHotkey();
|
|
|
|
void SetStateSlotHotkey(int slot);
|
|
|
|
void StateLoadSlotHotkey();
|
|
|
|
void StateSaveSlotHotkey();
|
2017-09-03 00:58:38 +00:00
|
|
|
void StartRecording();
|
|
|
|
void ExportRecording();
|
|
|
|
void ToggleReadOnlyMode();
|
2018-01-24 14:25:35 +00:00
|
|
|
void ConnectWiiRemote(int id);
|
2017-06-06 11:49:49 +00:00
|
|
|
|
2018-02-14 22:25:01 +00:00
|
|
|
void Step();
|
|
|
|
void StepOver();
|
|
|
|
void StepOut();
|
|
|
|
void Skip();
|
|
|
|
|
|
|
|
void ShowPC();
|
|
|
|
void SetPC();
|
|
|
|
|
|
|
|
void ToggleBreakpoint();
|
|
|
|
void AddBreakpoint();
|
|
|
|
|
2017-06-06 11:49:49 +00:00
|
|
|
private:
|
|
|
|
void Run();
|
|
|
|
|
|
|
|
Common::Flag m_stop_requested;
|
|
|
|
std::thread m_thread;
|
|
|
|
};
|