isPressed

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

Whether the current button was pressed once.

Return

true if pressed, false otherwise

Parameters

button

The button to check.

index

The index of the connected gamepad.