⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Input.Button

static BtnState Button(InputButton buttonType)

Gets a binary button state from the input system. These are on/off inputs like controller face buttons and thumbstick clicks.

   
InputButton buttonType The type of button input to retrieve.
RETURNS: BtnState A BtnState describing whether the button is active, just became active, or just became inactive this frame.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!