pub struct GlobalInput { /* private fields */ }Expand description
Platform-independent manager for global input hooks.
Implementations§
Source§impl GlobalInput
impl GlobalInput
pub fn new(handler: Arc<dyn GlobalInputHandler>) -> Self
Sourcepub fn with_mouse_move(self, on: bool) -> Self
pub fn with_mouse_move(self, on: bool) -> Self
Include MouseMove events (high frequency — off by default).
Trait Implementations§
Source§impl Drop for GlobalInput
impl Drop for GlobalInput
Auto Trait Implementations§
impl !Freeze for GlobalInput
impl !RefUnwindSafe for GlobalInput
impl !UnwindSafe for GlobalInput
impl Send for GlobalInput
impl Sync for GlobalInput
impl Unpin for GlobalInput
impl UnsafeUnpin for GlobalInput
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