The definition of a single action, including whether it represents state or change, whether it supports negative values, and the number of axes it has.
More...
#include <input_data.hpp>
|
::std::string | mName {} |
| The name of the action.
|
|
InputAttributesType | mAttributes {} |
| The same as in an InputSource, describes the type of data (normalized) this action is expected to have.
|
|
ActionValueType | mValueType {} |
| I'm not yet sure where this is used, since mAttributes already exists.
|
|
::std::string | mContext {} |
| The name of the context the action belongs to.
|
|
The definition of a single action, including whether it represents state or change, whether it supports negative values, and the number of axes it has.
The only parts of the definition used for comparisons is the action's name and context; its input attributes are mainly used internally, by the InputManager itself.
◆ ActionDefinition()
ToyMaker::ActionDefinition::ActionDefinition |
( |
const QualifiedActionName & | contextActionNamePair | ) |
|
|
inline |
Construct a new action definition object.
- Parameters
-
contextActionNamePair | The full name of the action. |
◆ operator QualifiedActionName()
◆ operator<()
bool ToyMaker::ActionDefinition::operator< |
( |
const ActionDefinition & | other | ) |
const |
|
inline |
Provides an implementation of the less than operator, mainly for use by the equality operator.
- Parameters
-
other | The action definition this one is being compared to. |
- Return values
-
true | This one is lesser than the other. |
false | This one is greater than the other. |
◆ operator==()
bool ToyMaker::ActionDefinition::operator== |
( |
const ActionDefinition & | other | ) |
const |
|
inline |
Compares two action definitions for equality.
... Just on the basis of their action and context names. Mainly in order to make them a unique key in a map container.
- Parameters
-
other | The action definition this one is being compared to. |
- Return values
-
true | They're the same; |
false | They're not the same; |
◆ mAttributes
The same as in an InputSource, describes the type of data (normalized) this action is expected to have.
Its used mainly internally, by an ActionContext, in order to figure out how to build action data values. This description is defined in some kind of input file.
◆ mValueType
I'm not yet sure where this is used, since mAttributes already exists.
- Todo
- Find out where this is used.
The documentation for this struct was generated from the following file: