update

fun update(buttonPressed: Boolean)

Updates the button state. Should be called in every loop iteration.

Parameters

buttonPressed

The current raw state of the button from the gamepad.