Struct hid_gamepad_sys::Acceleration
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§
§impl Acceleration
impl Acceleration
Trait Implementations§
§impl Clone for Acceleration
impl Clone for Acceleration
§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 more§impl Debug for Acceleration
impl Debug for Acceleration
§impl From<Vector3<f64>> for Acceleration
impl From<Vector3<f64>> for Acceleration
§fn from(raw: Vector3<f64>) -> Acceleration
fn from(raw: Vector3<f64>) -> Acceleration
Converts to this type from the input type.
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