A union that may contain any one of SimpleActionData, OneAxisActionData, TwoAxisActionData, ThreeAxisActionData.
More...
#include <input_data.hpp>
|
static constexpr ActionType | toType [4] |
| Array of action types so that 0 - BUTTON, 1 - ONE_AXIS, and so on.
|
|
◆ ActionData() [1/6]
ToyMaker::ActionData::ActionData |
( |
ActionType | actionType | ) |
|
|
inline |
Construct a new action data object of a particular type. Called prior to all other ActionData constructors.
- Parameters
-
actionType | The type of action data object to construct. |
◆ ActionData() [2/6]
Construct a new SIMPLE action data object, based on already existing SimpleActionData.
- Parameters
-
◆ ActionData() [3/6]
Construct a new ONE_AXIS action data object based on already existing OneAxisActionData.
- Parameters
-
◆ ActionData() [4/6]
Construct a new action data object based on already existing TwoAxisActionData.
- Parameters
-
◆ ActionData() [5/6]
Construct a new THREE_AXIS action data object based on already existing ThreeAxisActionData.
- Parameters
-
◆ ActionData() [6/6]
ToyMaker::ActionData::ActionData |
( |
uint8_t | nAxes | ) |
|
|
inline |
Construct a new Action Data object with nAxes axes.
- Parameters
-
nAxes | Number of axes for this action data. |
◆ toType
Initial value:{
ActionType::BUTTON, ActionType::ONE_AXIS,
ActionType::TWO_AXIS, ActionType::THREE_AXIS
}
Array of action types so that 0 - BUTTON, 1 - ONE_AXIS, and so on.
The documentation for this union was generated from the following file: