Game Pad
object GamePad
The current gamepad state, if one or multiple are connected.
Up to four gamepads can be connected at one time. The index parameter refers to the current index of which gamepad to read from, such as 0 for the first gamepad (Player 1), 1 for the second gamepad (Player 2), 2 for the third gamepad (Player 3), and 3 for the fourth gamepad (Player 4).
Types
Functions
Link copied to clipboard
Gets the axi available to the gamepad.
Link copied to clipboard
fun getAxisMovement(axis: GamePad.Axis, index: Int = 0): ERROR CLASS: Unresolved name: GetGamepadAxisMovement
Gets the axis movement on the specified gamepad.
Link copied to clipboard
Whether the gamepad is available.
Link copied to clipboard
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.
Link copied to clipboard
fun isPressed(button: GamePad.Button, index: Int = 0): ERROR CLASS: Unresolved name: IsGamepadButtonPressed
Whether the current button was pressed once.
Link copied to clipboard
fun isreleased(button: GamePad.Button, index: Int = 0): ERROR CLASS: Unresolved name: IsGamepadButtonReleased
Whether the current button was released once.
Link copied to clipboard
Whether the current button is currently in up state, or not being pressed.