Struct vex_rt::controller::Controller[][src]

pub struct Controller {
Show fields pub left_stick: AnalogStick, pub right_stick: AnalogStick, pub l1: Button, pub l2: Button, pub r1: Button, pub r2: Button, pub up: Button, pub down: Button, pub left: Button, pub right: Button, pub x: Button, pub y: Button, pub a: Button, pub b: Button,
}

Represents a Vex controller.

Fields

left_stick: AnalogStick

The left analog stick.

right_stick: AnalogStick

The right analog stick.

l1: Button

The top-left shoulder button.

l2: Button

The bottom-left shoulder button.

r1: Button

The top-right shoulder button.

r2: Button

The bottom-right shoulder button.

up: Button

The up directional button.

down: Button

The down directional button.

left: Button

The left directional button.

right: Button

The right directional button.

x: Button

The “X” button.

y: Button

The “Y” button.

a: Button

The “A” button.

b: Button

The “B” button.

Implementations

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.

Auto Trait Implementations

impl Send for Controller

impl Sync for Controller

impl Unpin for Controller

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.