pub struct Device { /* private fields */ }Expand description
Represents a handle to the virtual input device.
Implementations§
Source§impl Device
impl Device
Sourcepub fn send_mouse(&mut self, button: MouseButton, x: i8, y: i8, wheel: i8)
pub fn send_mouse(&mut self, button: MouseButton, x: i8, y: i8, wheel: i8)
Sends a mouse command to the device.
Sourcepub fn send_keyboard(
&mut self,
button1: KeyboardButton,
button2: KeyboardButton,
button3: KeyboardButton,
button4: KeyboardButton,
button5: KeyboardButton,
button6: KeyboardButton,
)
pub fn send_keyboard( &mut self, button1: KeyboardButton, button2: KeyboardButton, button3: KeyboardButton, button4: KeyboardButton, button5: KeyboardButton, button6: KeyboardButton, )
Sends a keyboard command to the device.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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