Input.isButtonUp

Check if a given button is down.

class Input
static
bool
isButtonUp
(
string buttonName
,
bool checkPrevious = false
)

Parameters

buttonName
Type: string

The name of the button to check.

checkPrevious
Type: bool

Whether or not to make sure the button was down last frame.

Meta