GamepadEx

class GamepadEx(gamepad: Gamepad) : Component

A class that simplifies the use of Gamepads.

Constructors

Link copied to clipboard
constructor(gamepad: Gamepad)

Properties

Link copied to clipboard
Link copied to clipboard

Controller-independent A. Equivalent to A (Xbox/Logitech) or Cross (PS4/5).

Link copied to clipboard
Link copied to clipboard

Controller-independent B. Equivalent to B (Xbox/Logitech) or Circle (PS4/5).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val internal: Gamepad
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "left_stick_x")
val left_stick_x: Double
Link copied to clipboard
@get:JvmName(name = "left_stick_y")
val left_stick_y: Double
Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "leftStickChanged")
var leftStickChanged: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "right_stick_x")
val right_stick_x: Double
Link copied to clipboard
@get:JvmName(name = "right_stick_y")
val right_stick_y: Double
Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "rightStickChanged")
var rightStickChanged: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Controller-independent X. Equivalent to X (Xbox/Logitech) or Square (PS4/5).

Link copied to clipboard
Link copied to clipboard

Controller-independent Y. Equivalent to Y (Xbox/Logitech) or Triangle (PS4/5).

Functions

Link copied to clipboard
fun <T> get(buttons: Function<GamepadEx, T>): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun invoke(buttons: GamepadEx.() -> KProperty0<Boolean>): BooleanSupplier
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun update()

This method is called repeatedly by the CommandScheduler.