Enum winput::message_loop::Event [−][src]
pub enum Event { Keyboard { vk: Vk, scan_code: u32, action: Action, }, MouseMoveRelative { x: i32, y: i32, }, MouseMoveAbsolute { x: f32, y: f32, virtual_desk: bool, }, MouseButton { action: Action, button: Button, }, MouseWheel { delta: f32, direction: WheelDirection, }, }
Expand description
An event of any kind.
Variants
Show fields
Show fields
Fields of MouseMoveRelative
x: i32
The x coordinate of the mouse, in per-monitor-aware screen coordinates.
y: i32
The y coordinate of the mouse, in per-monitor-aware screen coordinates.
Show fields
Show fields
Fields of MouseButton
action: Action
The action that was taken on the mouse button.
The mouse button involved in the event.
Show fields
Fields of MouseWheel
delta: f32
The amount of rotation of the wheel. Positive values indicate that the wheel was rotated forward, away from the user; a negative value means that the wheel was rotated backward, toward the user.
direction: WheelDirection
The direction of the wheel.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more