Enum winput::MouseMotion [−][src]
pub enum MouseMotion { Relative { dx: i32, dy: i32, }, Absolute { x: f32, y: f32, virtual_desk: bool, }, }
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
impl Clone for MouseMotion
[src]
impl Clone for MouseMotion
[src]fn clone(&self) -> MouseMotion
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MouseMotion
[src]
impl Copy for MouseMotion
[src]Auto Trait Implementations
impl RefUnwindSafe for MouseMotion
impl RefUnwindSafe for MouseMotion
impl Send for MouseMotion
impl Send for MouseMotion
impl Sync for MouseMotion
impl Sync for MouseMotion
impl Unpin for MouseMotion
impl Unpin for MouseMotion
impl UnwindSafe for MouseMotion
impl UnwindSafe for MouseMotion