Enum pros_devices::controller::JoystickAxis
source · #[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 copy 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
source§fn eq(&self, other: &JoystickAxis) -> bool
fn eq(&self, other: &JoystickAxis) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for JoystickAxis
impl Eq for JoystickAxis
impl StructuralPartialEq for JoystickAxis
Auto Trait Implementations§
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