GamepadEx

object GamepadEx : API

A Gamepad extension for more complex inputs.

The biggest function of this API is checking whether an input was pressed or released this update. See pressed, justPressed, and justReleased.

Beyond initialization, please call update every loop to use this API correctly.

This class is inspired by the bevy_input system.

Types

Link copied to clipboard

A list of all inputs being tracked by GamepadEx.

Properties

Link copied to clipboard
open val isLinear: Boolean = false

Specifies whether this API requires a LinearOpMode to function.

Functions

Link copied to clipboard
open fun dependencies(): Set<API>

A function that returns a Set of all other APIs it depends on to function.

Link copied to clipboard
open fun init(opMode: OpMode)

Initializes the API to use the given opMode.

Link copied to clipboard

Returns true if input was pressed this update.

Link copied to clipboard

Returns true if input was released this update.

Link copied to clipboard

Returns true if input it pressed.

Link copied to clipboard
fun update()

Updates pressed, justPressed, and justReleased to match current input.