Struct hid_gamepad_types::Acceleration
source · pub struct Acceleration {
pub x: f64,
pub y: f64,
pub z: f64,
}
Expand description
Uses the SDL convention.
Units are in g
Fields§
§x: f64
-x … +x is left … right
y: f64
-y … +y is down … up
z: f64
-z … +z is forward … backward
Implementations§
Trait Implementations§
source§impl Clone for Acceleration
impl Clone for Acceleration
source§fn clone(&self) -> Acceleration
fn clone(&self) -> Acceleration
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 Acceleration
impl Debug for Acceleration
source§impl From<Vector3<f64>> for Acceleration
impl From<Vector3<f64>> for Acceleration
impl Copy for Acceleration
Auto Trait Implementations§
impl Freeze for Acceleration
impl RefUnwindSafe for Acceleration
impl Send for Acceleration
impl Sync for Acceleration
impl Unpin for Acceleration
impl UnwindSafe for Acceleration
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