mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-13 20:42:24 +00:00
28 lines
494 B
C++
28 lines
494 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "NetMessage.h"
|
|
|
|
class SelectControllerMessage : public NetMessage
|
|
{
|
|
private:
|
|
uint8_t _portNumber;
|
|
|
|
protected:
|
|
virtual void ProtectedStreamState()
|
|
{
|
|
Stream<uint8_t>(_portNumber);
|
|
}
|
|
|
|
public:
|
|
SelectControllerMessage(void* buffer, uint32_t length) : NetMessage(buffer, length) { }
|
|
|
|
SelectControllerMessage(uint8_t port) : NetMessage(MessageType::SelectController)
|
|
{
|
|
_portNumber = port;
|
|
}
|
|
|
|
uint8_t GetPortNumber()
|
|
{
|
|
return _portNumber;
|
|
}
|
|
}; |