// Copyright 2017 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #pragma once #include #include #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 TogglePauseHotkey(); void ScreenShotHotkey(); void SetStateSlotHotkey(int slot); void StateLoadSlotHotkey(); void StateSaveSlotHotkey(); void StartRecording(); void ExportRecording(); void ToggleReadOnlyMode(); void ConnectWiiRemote(int id); private: void Run(); Common::Flag m_stop_requested; std::thread m_thread; };