mirror of
https://github.com/libretro/Mesen.git
synced 2025-02-02 06:44:48 +00:00
25 lines
529 B
C++
25 lines
529 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include <thread>
|
|
#include <unordered_set>
|
|
#include "EmulationSettings.h"
|
|
|
|
class ShortcutKeyHandler
|
|
{
|
|
private:
|
|
std::thread _thread;
|
|
atomic<bool> _stopThread;
|
|
|
|
std::unordered_set<uint32_t> _keysDown;
|
|
std::unordered_set<uint32_t> _prevKeysDown;
|
|
|
|
void CheckMappedKeys(EmulatorKeyMappings mappings);
|
|
void ProcessKeys(EmulatorKeyMappingSet mappings);
|
|
|
|
bool DetectKeyPress(uint32_t keyCode);
|
|
bool DetectKeyRelease(uint32_t keyCode);
|
|
|
|
public:
|
|
ShortcutKeyHandler();
|
|
~ShortcutKeyHandler();
|
|
}; |