pub struct KeyEvent {
pub key_code: KeyCode,
pub is_repeat: bool,
pub modifiers: KeyModifiers,
pub time: f64,
}Expand description
Data for various kinds of key-based events (Event::KeyDown, Event::KeyUp, etc).
Fields
key_code: KeyCodeis_repeat: boolmodifiers: KeyModifierstime: f64Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations
Mutably borrows from an owned value. Read more