VEX V5 C++ API
|
Use the axis class to get values from one of the controller's joysticks. More...
Public Member Functions | |
axis () | |
axis (const tAxisType id, controller *parent) | |
~axis () | |
int32_t | value (void) |
Gets the value of the joystick axis on a scale from -127 to 127. More... | |
int32_t | position (percentUnits units=percentUnits::pct) |
Gets the position of the joystick axis on a scale from -100 to 100. More... | |
Use the axis class to get values from one of the controller's joysticks.
|
inline |
|
inline |
|
inline |
int32_t vex::controller::axis::value | ( | void | ) |
Gets the value of the joystick axis on a scale from -127 to 127.
int32_t vex::controller::axis::position | ( | percentUnits | units = percentUnits::pct | ) |
Gets the position of the joystick axis on a scale from -100 to 100.
units | (Optional) The type of unit that will be returned. By default, this parameter is a percentage. |