Mesen/Core/InputDataMessage.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

27 lines
478 B
C++

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