mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
38 lines
644 B
C++
38 lines
644 B
C++
// 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:
|
|
void ExitHotkey();
|
|
void FullScreenHotkey();
|
|
void StopHotkey();
|
|
void PauseHotkey();
|
|
void ScreenShotHotkey();
|
|
void SetStateSlotHotkey(int slot);
|
|
void StateLoadSlotHotkey();
|
|
void StateSaveSlotHotkey();
|
|
|
|
private:
|
|
void Run();
|
|
|
|
Common::Flag m_stop_requested;
|
|
std::thread m_thread;
|
|
};
|