mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 03:02:05 -10:00
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format" * fix ui format warnings
29 lines
556 B
C++
29 lines
556 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include "Netplay/NetMessage.h"
|
|
#include "Shared/ControlDeviceState.h"
|
|
|
|
class InputDataMessage : public NetMessage
|
|
{
|
|
private:
|
|
ControlDeviceState _inputState;
|
|
|
|
protected:
|
|
void Serialize(Serializer& s) override
|
|
{
|
|
SVVector(_inputState.State);
|
|
}
|
|
|
|
public:
|
|
InputDataMessage(void* buffer, uint32_t length) : NetMessage(buffer, length) {}
|
|
|
|
InputDataMessage(ControlDeviceState inputState) : NetMessage(MessageType::InputData)
|
|
{
|
|
_inputState = inputState;
|
|
}
|
|
|
|
ControlDeviceState GetInputState()
|
|
{
|
|
return _inputState;
|
|
}
|
|
}; |