pub struct InputMapper { /* private fields */ }Expand description
Maps raw browser input events to application actions based on the current interaction mode.
Implementations§
Source§impl InputMapper
impl InputMapper
pub fn set_mode(&mut self, mode: InteractionMode)
Sourcepub fn process(&mut self, event: &InputEvent) -> Vec<AppAction>
pub fn process(&mut self, event: &InputEvent) -> Vec<AppAction>
Process a raw input event and return zero or more application actions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputMapper
impl RefUnwindSafe for InputMapper
impl Send for InputMapper
impl Sync for InputMapper
impl Unpin for InputMapper
impl UnsafeUnpin for InputMapper
impl UnwindSafe for InputMapper
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