Input

object Input : API

Properties

Link copied to clipboard
open val dependencies: Set<API>

Configures all APIs that must be initialized in order to use this API.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns true if init has been called for this opmode.

Link copied to clipboard
open val isLinear: Boolean = false

Defines whether this API requires features from LinearOpMode.

Functions

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

Initializes this API.

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

Returns true if button was pressed this update for gamepad1.

Link copied to clipboard

Returns true if button was released this update for gamepad1.

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

Returns true if button is currently pressed for gamepad1.

Link copied to clipboard
fun update()

Calls GamepadEx.update for both gamepad1 and gamepad2.