mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-11 10:54:01 +00:00
850102bbdc
Movies: Rewrote format to support all IO devices and console types Netplay: Now supports all IO devices and console types
29 lines
546 B
C++
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;
|
|
}
|
|
}; |