isDown

fun isDown(button: GamePad.Button, index: Int = 0): ERROR CLASS: Unresolved name: IsGamepadButtonDown

Whether the current button is currently in down state, or being pressed.

Return

true if down, false otherwise

Parameters

button

The button to check.

index

The index of the connected gamepad.