Module controller

Source
Expand description

V5 Controller

This module allows you to read from the buttons and joysticks on the controller and write to the controller’s display.

Structs§

ButtonState
Represents the state of a button on the controller.
Controller
The basic type for a controller. Used to get the state of its joysticks and controllers.
ControllerScreen
Controller LCD Console
ControllerScreenWriteFuture
A future that completes once a write to the controller screen has been performed.
ControllerState
Holds a snapshot of the state of the controller. Returned by Controller::state.
JoystickState
Stores how far the joystick is away from the center (at (0, 0)) from -1 to 1. On the x axis left is negative, and right is positive. On the y axis down is negative, and up is positive.

Enums§

ControllerConnection
Represents the state of a controller’s connection.
ControllerError
Errors that can occur when interacting with the controller.
ControllerId
Represents an identifier for one of the two possible controllers connected to the V5 Brain.