Optional
event: anyWhether or not the given button is pressed
will be removed in v0.28.0. Use isButtonHeld instead
The button to query
The threshold over which the button is considered to be pressed
Tests if a certain button was just pressed this frame. This is cleared at the end of the update frame.
Test whether a button was just pressed
The threshold over which the button is considered to be pressed
Gamepad holds state information for a connected controller. See Gamepads for more information on handling controller input.