pub struct Simulate;Expand description
Input simulator for synthesizing events.
Use Simulate to programmatically trigger keyboard and mouse actions.
§Example
use raw_input::{Simulate, Event, Key};
// Simulate pressing the 'A' key
Simulate::simulate(Event::KeyDown { key: Key::KeyA });
// Convenience methods for mouse
Simulate::mouse_move(100, 100);Auto Trait Implementations§
impl Freeze for Simulate
impl RefUnwindSafe for Simulate
impl Send for Simulate
impl Sync for Simulate
impl Unpin for Simulate
impl UnwindSafe for Simulate
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