pub enum Event {
Key {
key: Key,
action: Action,
},
Char {
character: char,
action: Action,
},
MoveMouseAbsolute {
x: f32,
y: f32,
map_to_virtual_desktop: bool,
},
MoveMouseRelative {
dx: i32,
dy: i32,
},
Scroll {
delta: f32,
direction: ScrollDirection,
},
}
Expand description
An event that can be sent to a Simulate
.
Variants§
Key
Char
MoveMouseAbsolute
Fields
MoveMouseRelative
Scroll
Fields
§
delta: f32
One mouse clock is a delta
of 1
.
A positive value means the wheel must be rotated forward (or to the right if
the direction is horizontal).
§
direction: ScrollDirection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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