#[repr(u32)]pub enum JoystickAxis {
LeftX = 0,
LeftY = 1,
RightX = 2,
RightY = 3,
}Expand description
An analog channel (joystick axis) on the VEX controller.
Variants§
LeftX = 0
Left (-1.0) and right (1.0) x axis of the left joystick
LeftY = 1
Down (-1.0) and up (1.0) y axis of the left joystick
RightX = 2
Left (-1.0) and right (1.0) x axis of the right joystick
RightY = 3
Down (-1.0) and up (1.0) y axis of the right joystick
Trait Implementations§
Source§impl Clone for JoystickAxis
impl Clone for JoystickAxis
Source§fn clone(&self) -> JoystickAxis
fn clone(&self) -> JoystickAxis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JoystickAxis
impl Debug for JoystickAxis
Source§impl PartialEq for JoystickAxis
impl PartialEq for JoystickAxis
impl Copy for JoystickAxis
impl Eq for JoystickAxis
impl StructuralPartialEq for JoystickAxis
Auto Trait Implementations§
impl Freeze for JoystickAxis
impl RefUnwindSafe for JoystickAxis
impl Send for JoystickAxis
impl Sync for JoystickAxis
impl Unpin for JoystickAxis
impl UnwindSafe for JoystickAxis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more