Enum winput::MouseMotion [−][src]
pub enum MouseMotion { Relative { dx: i32, dy: i32, }, Absolute { x: f32, y: f32, virtual_desk: bool, }, }
Expand description
Describes a mouse motion.
Variants
Describes a relative mouse motion, in pixels.
Relative mouse motion is subject to the effects of the mouse speed and the two-mouse threshold values. A user sets these three values with the Pointer Speed slider of the Control Panel’s Mouse Properties sheet.
Show fields
Describes an absolute mouse motion, in normalized coordinates.
Show fields
Fields of Absolute
x: f32
The normalized position of the mouse on the horizontal axis. A value of
0.0
maps to the left of the screen and a value of 1.0
maps to the
right of the screen.
y: f32
The normalized position of the mouse on the vertical axis. A value of 0.0
maps to the top of the screen and a value of 1.0
maps to the bottom on the
screen.
virtual_desk: bool
Whether the given normalized coordinates should map to the entier virtual desktop (if multiple monitors are used, for example).
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MouseMotion
impl Send for MouseMotion
impl Sync for MouseMotion
impl Unpin for MouseMotion
impl UnwindSafe for MouseMotion
Blanket Implementations
Mutably borrows from an owned value. Read more