Mesen-SX/Core/ControlDeviceState.h

20 lines
369 B
C
Raw Permalink Normal View History

2019-02-17 19:54:29 -05:00
#pragma once
#include "stdafx.h"
#include <cstring>
#include "SettingTypes.h"
2019-02-17 19:54:29 -05:00
struct ControlDeviceState
{
vector<uint8_t> State;
bool operator!=(ControlDeviceState &other)
2019-02-17 19:54:29 -05:00
{
return State.size() != other.State.size() || memcmp(State.data(), other.State.data(), State.size()) != 0;
}
};
struct ControllerData
{
ControllerType Type;
ControlDeviceState State;
};