|
| size_t | deviceId = static_cast<size_t>(-1) |
| |
| std::string | id |
| |
| std::string | alias |
| |
| size_t | axisMask = 0 |
| |
| size_t | buttonMask = 0 |
| |
| std::array< float, kMaxAxes > | axes = { 0.f } |
| |
| std::array< float, kMaxAxes > | axisDeltas = { 0.f } |
| |
| std::array< float, kMaxAxes > | deadZones = { kDefaultDeadZone } |
| |
| std::array< size_t, kMaxAxes > | linkedDeadZones = { kNoDeadZoneLink } |
| |
| std::array< float, kMaxAxes > | sensitivity = { kDefaultSensitivity } |
| |
| std::array< bool, kMaxAxes > | invert = { false } |
| |
| std::array< bool, kMaxActions > | buttons = { false } |
| |
| std::array< bool, kMaxActions > | buttonDeltas = { false } |
| |
| bool | isConnected = false |
| |
| bool | isValid = false |
| |
| std::unordered_map< std::string, size_t > | axisMap |
| |
| std::unordered_map< std::string, size_t > | actionMap |
| |
| std::vector< std::string > | axisNames |
| |
| std::vector< std::string > | actionNames |
| |
| class IInputDevice * | device = nullptr |
| |
Definition at line 21 of file InputDeviceState.h.
◆ countBits()
| size_t Cogs::Core::InputDeviceState::countBits |
( |
uint64_t |
flags | ) |
|
|
inline |
◆ highestBit()
| int8_t Cogs::Core::InputDeviceState::highestBit |
( |
uint64_t |
flags | ) |
|
|
inline |
◆ pressed()
| bool Cogs::Core::InputDeviceState::pressed |
( |
size_t |
index | ) |
const |
|
inline |
◆ released()
| bool Cogs::Core::InputDeviceState::released |
( |
size_t |
index | ) |
const |
|
inline |
◆ setAxis()
| void Cogs::Core::InputDeviceState::setAxis |
( |
size_t |
index, |
|
|
float |
value |
|
) |
| |
|
inline |
◆ setButton()
| void Cogs::Core::InputDeviceState::setButton |
( |
size_t |
index, |
|
|
bool |
state |
|
) |
| |
|
inline |
◆ actionMap
| std::unordered_map<std::string, size_t> Cogs::Core::InputDeviceState::actionMap |
◆ actionNames
| std::vector<std::string> Cogs::Core::InputDeviceState::actionNames |
◆ alias
| std::string Cogs::Core::InputDeviceState::alias |
◆ axes
| std::array<float, kMaxAxes> Cogs::Core::InputDeviceState::axes = { 0.f } |
◆ axisDeltas
| std::array<float, kMaxAxes> Cogs::Core::InputDeviceState::axisDeltas = { 0.f } |
◆ axisMap
| std::unordered_map<std::string, size_t> Cogs::Core::InputDeviceState::axisMap |
◆ axisMask
| size_t Cogs::Core::InputDeviceState::axisMask = 0 |
◆ axisNames
| std::vector<std::string> Cogs::Core::InputDeviceState::axisNames |
◆ buttonDeltas
| std::array<bool, kMaxActions> Cogs::Core::InputDeviceState::buttonDeltas = { false } |
◆ buttonMask
| size_t Cogs::Core::InputDeviceState::buttonMask = 0 |
◆ buttons
| std::array<bool, kMaxActions> Cogs::Core::InputDeviceState::buttons = { false } |
◆ deadZones
| std::array<float, kMaxAxes> Cogs::Core::InputDeviceState::deadZones = { kDefaultDeadZone } |
◆ device
| class IInputDevice* Cogs::Core::InputDeviceState::device = nullptr |
◆ deviceId
| size_t Cogs::Core::InputDeviceState::deviceId = static_cast<size_t>(-1) |
◆ id
| std::string Cogs::Core::InputDeviceState::id |
◆ invert
| std::array<bool, kMaxAxes> Cogs::Core::InputDeviceState::invert = { false } |
◆ isConnected
| bool Cogs::Core::InputDeviceState::isConnected = false |
◆ isValid
| bool Cogs::Core::InputDeviceState::isValid = false |
◆ linkedDeadZones
| std::array<size_t, kMaxAxes> Cogs::Core::InputDeviceState::linkedDeadZones = { kNoDeadZoneLink } |
◆ sensitivity
| std::array<float, kMaxAxes> Cogs::Core::InputDeviceState::sensitivity = { kDefaultSensitivity } |
The documentation for this struct was generated from the following file: