mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Qt: Implement hotkeys (+ configuration)
This commit is contained in:
37
Source/Core/DolphinQt2/HotkeyScheduler.h
Normal file
37
Source/Core/DolphinQt2/HotkeyScheduler.h
Normal file
@ -0,0 +1,37 @@
|
||||
// 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;
|
||||
};
|
Reference in New Issue
Block a user