Expand description

Read from the buttons and joysticks on the controller and write to the controller’s display.

Controllers are identified by their id, which is either 0 (master) or 1 (partner). State of a controller can be checked by calling Controller::state which will return a struct with all of the buttons’ and joysticks’ state.

Structs§

  • Holds whether or not the buttons on the controller are pressed or not
  • Represents one line on the controller console.
  • Stores the current state of the controller; the joysticks and buttons.
  • 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.
  • Stores both joysticks on the controller.

Enums§

  • The basic type for a controller. Used to get the state of its joysticks and controllers.
  • A digital channel (button) on the VEX controller.
  • Errors that can occur when interacting with the controller.
  • An analog channel (joystick axis) on the VEX controller.