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: KeyCode
is_repeat: bool
modifiers: KeyModifiers
time: f64
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations
Mutably borrows from an owned value. Read more