whenPressed

Run a task when a controller button is pressed (will run once when pressing the desired input). This is the same as rising-edge detection.

Return

Task scheduling builder

Parameters

button

The button of the controller.