pub struct JoystickState { /* private fields */ }
Expand description
Stores how far the joystick is away from the center (at (0, 0)) from -1 to 1. On the x axis left is negative, and right is positive. On the y axis down is negative, and up is positive.
Implementations§
Trait Implementations§
Source§impl Clone for JoystickState
impl Clone for JoystickState
Source§fn clone(&self) -> JoystickState
fn clone(&self) -> JoystickState
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JoystickState
impl Debug for JoystickState
Source§impl Default for JoystickState
impl Default for JoystickState
Source§fn default() -> JoystickState
fn default() -> JoystickState
Returns the “default value” for a type. Read more
Source§impl PartialEq for JoystickState
impl PartialEq for JoystickState
impl Copy for JoystickState
impl Eq for JoystickState
impl StructuralPartialEq for JoystickState
Auto Trait Implementations§
impl Freeze for JoystickState
impl RefUnwindSafe for JoystickState
impl Send for JoystickState
impl Sync for JoystickState
impl Unpin for JoystickState
impl UnwindSafe for JoystickState
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