GamepadEx

public final class GamepadEx implements Component

A class that simplifies the use of Gamepads.

Constructors

Link copied to clipboard
public GamepadEx GamepadEx(Gamepad gamepad)

Properties

Link copied to clipboard
public final Button a
Link copied to clipboard
public final Toggleable a0

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

Link copied to clipboard
public final Button b
Link copied to clipboard
public final Toggleable b0

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

Link copied to clipboard
public final Button back
Link copied to clipboard
public final Button circle
Link copied to clipboard
public final Button cross
Link copied to clipboard
public final Button dpad_down
Link copied to clipboard
public final Button dpad_left
Link copied to clipboard
public final Button dpad_right
Link copied to clipboard
public final Button dpad_up
Link copied to clipboard
public final Button guide
Link copied to clipboard
public final Gamepad internal
Link copied to clipboard
public final Button left_bumper
Link copied to clipboard
Link copied to clipboard
private final Double left_stick_x
Link copied to clipboard
private final Double left_stick_y
Link copied to clipboard
public final Trigger left_trigger
Link copied to clipboard
private final Boolean leftStickChanged
Link copied to clipboard
public final Button options
Link copied to clipboard
public final Button ps
Link copied to clipboard
public final Button right_bumper
Link copied to clipboard
Link copied to clipboard
private final Double right_stick_x
Link copied to clipboard
private final Double right_stick_y
Link copied to clipboard
Link copied to clipboard
private final Boolean rightStickChanged
Link copied to clipboard
public final Button share
Link copied to clipboard
public final Button square
Link copied to clipboard
public final Button start
Link copied to clipboard
public final Button touchpad
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Button triangle
Link copied to clipboard
public final Button x
Link copied to clipboard
public final Toggleable x0

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

Link copied to clipboard
public final Button y
Link copied to clipboard
public final Toggleable y0

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

Functions

Link copied to clipboard
public final T get<T extends Any>(Function<GamepadEx, T> buttons)
Link copied to clipboard
public final Toggleable getButton(GamepadButton button)
Link copied to clipboard
public final Vector2d getLeftStick()
Link copied to clipboard
public final Vector2d getRightStick()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean isActive(GamepadButton button)
Link copied to clipboard
public final Boolean isJustActivated(GamepadButton button)
Link copied to clipboard
public final Boolean isJustChanged(GamepadButton button)
Link copied to clipboard
public final Boolean isJustDeactivated(GamepadButton button)
Link copied to clipboard
public final Double left_stick_x()
Link copied to clipboard
public final Double left_stick_y()
Link copied to clipboard
public final Boolean leftStickChanged()
Link copied to clipboard
public final Double right_stick_x()
Link copied to clipboard
public final Double right_stick_y()
Link copied to clipboard
public final Boolean rightStickChanged()
Link copied to clipboard
public Unit update()

This method is called repeatedly by the CommandScheduler.