gamepadButtonPressed

open override fun gamepadButtonPressed(button: GameButton, pressure: Float, gamepad: Int): Boolean

Invoked when a GameButton is initially pressed on a GamepadInfo.

Return

true if event is handled; false otherwise

Parameters

button

the game button that was pressed

pressure

the pressure of the game button 0f or 1f.

gamepad

the index of the gamepad that had the button pressed