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
Fields of ModifiersChange
modifiers: Modifiers
Tuple Fields of Text
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more