pub struct Inputs { /* private fields */ }Expand description
The set of all input state and/or changes since the last frame.
Implementations§
Source§impl Inputs
impl Inputs
Sourcepub fn accelerometer(&self) -> Option<Vector3<f32>>
pub fn accelerometer(&self) -> Option<Vector3<f32>>
Returns the last read values from the accelerometor.
These values are only present if the accelerometer is enabled via System::enable_devices(),
otherwise it returns None.
Returns the state of and events that occured since the last frame for all buttons.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inputs
impl RefUnwindSafe for Inputs
impl Send for Inputs
impl Sync for Inputs
impl Unpin for Inputs
impl UnwindSafe for Inputs
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