Mesen/Core/InputDataMessage.h
Souryo 850102bbdc Input: Added support for ~20 new peripherals (Incomplete, more fixes/changes to come)
Movies: Rewrote format to support all IO devices and console types
Netplay: Now supports all IO devices and console types
2017-11-19 23:08:23 -05:00

29 lines
546 B
C++

#pragma once
#include "stdafx.h"
#include "NetMessage.h"
#include "ControlDeviceState.h"
class InputDataMessage : public NetMessage
{
private:
ControlDeviceState _inputState;
protected:
virtual void ProtectedStreamState()
{
StreamArray(_inputState.State);
}
public:
InputDataMessage(void* buffer, uint32_t length) : NetMessage(buffer, length) { }
InputDataMessage(ControlDeviceState inputState) : NetMessage(MessageType::InputData)
{
_inputState = inputState;
}
ControlDeviceState GetInputState()
{
return _inputState;
}
};