#include <InputCombo.h>
Inheritance diagram for Odyssey::InputCombo:
Public Types | |
typedef ActionMapInputAdapter::AttributeIterator | AttributeIterator |
typedef ActionMapInputAdapter::ConstAttributeIterator | ConstAttributeIterator |
Public Member Functions | |
InputCombo () | |
Constructs a new empty combo. | |
bool | containsFilter (const String &name) const |
Returns true of a filter with the given name exists. | |
void | setFilter (const String &name, InputAdapter *filter, bool manage=true) |
Add a new filter to this combo's action map. | |
void | setFilter (const String &name, InputAdapterPtr filter) |
Add a new filter to this combo's action map. | |
void | setFilter (const String &name, InputCombo *combo) |
Add a new filter in the form of another combo. | |
void | removeFilter (const String &name) |
Removes the given filter from this combo's action map. | |
void | clearFilters () |
Clears all filters from this combo's action map. | |
void | registerAdapter (MultiInputAdapter &adapter) |
Registers this combo's action map with the given adapter. | |
void | registerAdapter (InputSystem &system) |
Registers this combo's action map with the input system. | |
void | unregisterAdapter (MultiInputAdapter &adapter) |
Unregisters the combo's action map from the given adapter. | |
void | unregisterAdapter (InputSystem &system) |
Unregisters the combo's action map from the input system. | |
virtual void | onEvent (const String &action) |
The callback for this combo's action mapping. | |
virtual void | onCombo () |
This function is meant as the callback when the combo is invoked. | |
void | setAttribute (const String &name, const Variable &attr) |
Sets an attribute for the adapter. | |
Variable | getAttribute (const String &name) const |
Gets an attribute for the adapter. | |
void | removeAttribute (const String &name) |
Removes an attribute. | |
void | clearAttributes () |
Clears all attributes. | |
size_t | getAttributeCount () const |
Returns the number of stored attributes. | |
AttributeIterator | getAttributeIterator () |
Returns an iterator over the stored attributes. | |
ConstAttributeIterator | getAttributeIterator () const |
Returns an iterator over the stored attributes. | |
Public Attributes | |
Delegate | ComboTriggered |
Variable | ComboTriggerVariable |
Protected Types | |
typedef std::map< String, InputCombo * > | ComboMap |
Protected Attributes | |
ActionMapInputAdapter | _adapter |
ComboMap | _combos |
This base class defines the behaviors for an input combo. An input combo is a combination of input actions that are connected through defined rules.
|
|
|
|
|
|
|
Constructs a new empty combo.
|
|
Clears all attributes.
|
|
Clears all filters from this combo's action map.
|
|
Returns true of a filter with the given name exists.
|
|
Gets an attribute for the adapter.
|
|
Returns the number of stored attributes.
|
|
Returns an iterator over the stored attributes.
|
|
Returns an iterator over the stored attributes.
|
|
This function is meant as the callback when the combo is invoked.
|
|
The callback for this combo's action mapping. This is the callable target that get notified when an action from this combo's action map is invoked. It is in this overrideable that the logic for combo invocation is made. If the combo should be invoked, onCombo needs to be called.
Reimplemented in Odyssey::TimedInputCombo, Odyssey::AndInputCombo, and Odyssey::TriggerInputCombo. |
|
Registers this combo's action map with the input system.
|
|
Registers this combo's action map with the given adapter.
|
|
Removes an attribute.
|
|
Removes the given filter from this combo's action map.
|
|
Sets an attribute for the adapter.
|
|
Add a new filter in the form of another combo.
|
|
Add a new filter to this combo's action map.
|
|
Add a new filter to this combo's action map.
|
|
Unregisters the combo's action map from the input system.
|
|
Unregisters the combo's action map from the given adapter.
|
|
|
|
|
|
|
|
|