Struct vex_rt::controller::Controller [−][src]
pub struct Controller {}Represents a Vex controller.
Fields
left_stick: AnalogStickThe left analog stick.
right_stick: AnalogStickThe right analog stick.
l1: ButtonThe top-left shoulder button.
l2: ButtonThe bottom-left shoulder button.
r1: ButtonThe top-right shoulder button.
r2: ButtonThe bottom-right shoulder button.
up: ButtonThe up directional button.
down: ButtonThe down directional button.
left: ButtonThe left directional button.
right: ButtonThe right directional button.
x: ButtonThe “X” button.
y: ButtonThe “Y” button.
a: ButtonThe “A” button.
b: ButtonThe “B” button.
Implementations
impl Controller[src]
impl Controller[src]pub unsafe fn new(id: ControllerId) -> Self[src]
Creates a new controller.
Safety
This function is unsafe because it allows the user to create multiple
mutable references to the same controller. You likely want to implement
Robot::new instead.