Trigger
This class provides an easy way to link commands to conditions.
It is very easy to link a button to a command. For instance, you could link the trigger button of a joystick to a "score" command.
Triggers can easily be composed for advanced functionality using the [and], [or], [negate] operators.
Functions
Creates a new debounced trigger from this trigger - it will become active when this trigger has been active for longer than the specified period.
Creates a new multi-press trigger from this trigger - it will become active when this trigger has been activated the required number of times within the specified time window.
Toggles a command when the condition changes from true to false.
Toggles a command when the condition changes from false to true.
Starts the given command when the condition changes to false and cancels it when the condition changes to true.