2019-02-17 19:54:29 -05:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include <cstring>
|
2019-10-18 17:05:44 -04:00
|
|
|
#include "SettingTypes.h"
|
2019-02-17 19:54:29 -05:00
|
|
|
|
|
|
|
struct ControlDeviceState
|
|
|
|
{
|
|
|
|
vector<uint8_t> State;
|
|
|
|
|
2021-03-10 11:13:28 -05:00
|
|
|
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;
|
|
|
|
}
|
2019-10-18 17:05:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ControllerData
|
|
|
|
{
|
|
|
|
ControllerType Type;
|
|
|
|
ControlDeviceState State;
|
2021-03-10 11:13:28 -05:00
|
|
|
};
|