AbstractCalled once when the input becomes inactive. Override this to handle cleanup or end states.
Called every frame when the tick loop is running.
Time in milliseconds since the last frame
Called once when the input becomes active. Override this to handle the initial input event.
Optional_value: voidOptional value associated with the input
Called every frame while the input remains active. Override this to handle continuous input.
Optional_value: voidOptional value associated with the input
Command that receives tick events every frame, regardless of input state. Use this for commands that need to run continuously, like physics or animations.
Setup
To use TickCommand, you must:
systemInput: Inputs.SYSTEM_TICKinputManager.startTick()to begin the tick loopExample