Mesen/Core/VirtualController.h
Souryo 48409ae82b -Rewrote entire GUI in .NET
-Several other fixes (bugfixes, refactoring, etc.)
-Added a few more features to debugger
2015-07-01 23:17:14 -04:00

28 lines
520 B
C++

#pragma once
#include "stdafx.h"
#include <atomic>
using std::atomic;
#include "IControlDevice.h"
#include "../Utilities/SimpleLock.h"
class VirtualController : public IControlDevice
{
list<uint8_t> _inputData;
bool _paused = false;
atomic<uint32_t> _queueSize;
atomic<bool> _waiting;
atomic<bool> _shutdown;
SimpleLock _writeLock;
uint8_t _port;
uint32_t _minimumBuffer = 3;
public:
VirtualController(uint8_t port);
~VirtualController();
ButtonState GetButtonState();
void PushState(uint8_t state);
};