pub struct Input {
pub pointers: Vec<Pointer>,
pub actions: Vec<ActionEvent>,
pub held: Vec<ActionId>,
pub scroll: [f32; 2],
pub look: [f32; 2],
pub cursor_locked: bool,
pub time: f64,
pub host: HostMessages,
}Expand description
Everything the host converted since the previous boundary.
Fields§
§pointers: Vec<Pointer>§actions: Vec<ActionEvent>§held: Vec<ActionId>§scroll: [f32; 2]§look: [f32; 2]Captured mouse motion in logical pixels, y-up.
cursor_locked: bool§time: f64Seconds on the pointer clock when the host gathered this boundary.
host: HostMessagesImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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