Mesen2/Core/Shared/ControlDeviceState.h

21 lines
No EOL
388 B
C

#pragma once
#include "pch.h"
#include <cstring>
#include "Shared/SettingTypes.h"
struct ControlDeviceState
{
vector<uint8_t> State;
bool operator!=(ControlDeviceState &other)
{
return State.size() != other.State.size() || memcmp(State.data(), other.State.data(), State.size()) != 0;
}
};
struct ControllerData
{
ControllerType Type;
ControlDeviceState State;
uint8_t Port;
};