Enum three_d::window::Event [−][src]
pub enum Event {
MousePress {
button: MouseButton,
position: (f64, f64),
modifiers: Modifiers,
handled: bool,
},
MouseRelease {
button: MouseButton,
position: (f64, f64),
modifiers: Modifiers,
handled: bool,
},
MouseMotion {
button: Option<MouseButton>,
delta: (f64, f64),
position: (f64, f64),
modifiers: Modifiers,
handled: bool,
},
MouseWheel {
delta: (f64, f64),
position: (f64, f64),
modifiers: Modifiers,
handled: bool,
},
MouseEnter,
MouseLeave,
KeyPress {
kind: Key,
modifiers: Modifiers,
handled: bool,
},
KeyRelease {
kind: Key,
modifiers: Modifiers,
handled: bool,
},
ModifiersChange {
modifiers: Modifiers,
},
Text(String),
}
Expand description
An input event (from mouse, keyboard or similar).
Variants
MousePress
MouseRelease
MouseMotion
MouseWheel
MouseEnter
MouseLeave
KeyPress
KeyRelease
ModifiersChange
Fields
modifiers: Modifiers
Text(String)
Tuple Fields
0: String
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more