pub struct Input<'a> {
pub delta_time: f32,
pub cursor_position: Option<(f32, f32)>,
pub mouse: Mouse,
pub pressed_keys: Keys<'a>,
pub released_keys: Keys<'a>,
}Expand description
User input.
Fields§
§delta_time: f32Seconds since previous update was called.
cursor_position: Option<(f32, f32)>The cursor XY position on the screen.
None if the cursor out of screen.
mouse: MouseThe mouse input.
pressed_keys: Keys<'a>The pressed keys.
released_keys: Keys<'a>The released keys.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Input<'a>
impl<'a> Send for Input<'a>
impl<'a> Sync for Input<'a>
impl<'a> Unpin for Input<'a>
impl<'a> UnwindSafe for Input<'a>
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