whenPressed

Run a task when a controller button is pressed (will run once when pressing the desired input).

Return

Timing/stop control for allocation.

Parameters

button

The button of the controller.