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§
- Button
State - 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.
- Controller
Screen - Controller LCD Console
- Controller
Screen Write Future - A future that completes once a write to the controller screen has been performed.
- Controller
State - Holds a snapshot of the state of the controller.
Returned by
Controller::state
. - Joystick
State - 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§
- Controller
Connection - Represents the state of a controller’s connection.
- Controller
Error - Errors that can occur when interacting with the controller.
- Controller
Id - Represents an identifier for one of the two possible controllers connected to the V5 Brain.