InputSystem.isButtonDown

Check if a given button is down.

class InputSystem(ButtonEnum, AxisEnum)
isButtonDown

Parameters

buttonCode
Type: Buttons

The code of the button to check.

checkPrevious
Type: bool

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

Return Value

The state of the button.

Meta