AbstractThe type of value passed to trigger/update (default: void)
Called once when the input becomes inactive. Override this to handle cleanup or end states.
Called once when the input becomes active. Override this to handle the initial input event.
Optional_value: TOptional value associated with the input
Called every frame while the input remains active. Override this to handle continuous input.
Optional_value: TOptional value associated with the input
Base class for all input commands. Extend this class to create custom commands that respond to input events.
Lifecycle
Commands have three lifecycle methods that are called based on input state:
trigger()- Called once when the input becomes active (key pressed, button pressed)update()- Called every frame while the input remains activerelease()- Called once when the input becomes inactive (key released, button released)Example