GamepadEx

An advanced version of Gamepad that detects immediate presses and releases, useful for advanced controls and user-interfaces.

This needs to be updatedd repeatedly by calling update to detect new input.

Usually you do not want to create this yourself. Instead, go through the Input API.

Constructors

Link copied to clipboard
constructor(number: GamepadEx.GamepadNumber)

Types

Link copied to clipboard

Represents which of the 2 possible gamepads this GamepadEx is associated with.

Functions

Link copied to clipboard
fun justPressed(button: Button): Boolean

Returns true if button was pressed this update.

Link copied to clipboard

Returns true if button was released this update.

Link copied to clipboard
fun pressed(button: Button): Boolean

Returns true if button is currently pressed.

Link copied to clipboard
fun update(opMode: OpMode)

Updates this for new gamepad events.