#include <InputCombo.h>
Inheritance diagram for Odyssey::TimedInputCombo:
Public Member Functions | |
TimedInputCombo () | |
void | setActionTiming (size_t index, const String &action, float32 timing) |
Set the timing and action name parameters for the indexed combo element. | |
void | removeActionTiming (size_t index, bool shrink=true) |
Remove the indexed combo timing element. | |
const String & | getAction (size_t index) const |
Retrieves the action name assigned to the indexed combo timing element. | |
float32 | getActionTiming (size_t index) const |
Gets the timing info for the indexed combo element. | |
void | reset () |
Resets the internal combo memory. | |
void | onEvent (const String &action) |
The callback for this combo's action mapping. | |
Static Public Attributes | |
static const float32 | TIMING_INFINITE |
This acts as a timed combo. It works by using ordering and timings to invoke the combo. That is, the actions must come in the right order, and within the specified time (between actions) for the combo to get invoked.
|
|
|
Retrieves the action name assigned to the indexed combo timing element.
|
|
Gets the timing info for the indexed combo element.
|
|
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 from Odyssey::InputCombo. |
|
Remove the indexed combo timing element.
|
|
Resets the internal combo memory.
|
|
Set the timing and action name parameters for the indexed combo element.
|
|
|