VoltAir
|
Represents a scheme mapping input trigger axes to output actions. More...
Public Member Functions | |
TriggerAxisScheme () | |
Constructs an empty TriggerAxisScheme. More... | |
TriggerAxisScheme (const typename InputScheme< TriggerAxisCode >::Map &scheme) | |
Constructs a TriggerAxisScheme from the specified scheme . More... | |
virtual bool | handlesControllerEvent (const ControllerEvent *event) const override |
Returns whether or not this TriggerAxisScheme would handle event . More... | |
Public Member Functions inherited from InputScheme< TriggerAxisCode > | |
InputScheme () | |
Constructs an empty input scheme. More... | |
InputScheme (const Map &scheme) | |
Constructs an InputScheme from the specified input to action map. More... | |
bool | empty () const |
Returns whether or not the InputScheme contains any mappings. More... | |
Map::const_iterator | begin () const |
Returns a const iterator positioned at the beginning of the InputScheme. More... | |
Map::const_iterator | end () const |
Returns a const iterator positioned at the end of the InputScheme. More... | |
bool | hasActionFor (const TriggerAxisCode &input) const |
Returns whether or not this input scheme has an action associated with the specified input . More... | |
bool | intersects (const InputScheme< TriggerAxisCode > &inputScheme) const |
Returns whether or not inputScheme intersects with this InputScheme. More... | |
Additional Inherited Members | |
Public Types inherited from InputScheme< TriggerAxisCode > | |
typedef int | Action |
Output type. More... | |
typedef std::map < TriggerAxisCode, Action > | Map |
Input "event" to Action output map. More... | |
Represents a scheme mapping input trigger axes to output actions.
|
inline |
Constructs an empty TriggerAxisScheme.
|
inline |
Constructs a TriggerAxisScheme from the specified scheme
.
scheme | InputScheme mapping TriggerAxisCodes to actions |
|
inlineoverridevirtual |
Returns whether or not this TriggerAxisScheme would handle event
.
event | ControllerEvent to check against the TriggerAxisScheme inputs |
Implements InputScheme< TriggerAxisCode >.