pub struct KeyboardEvent {
pub action: KeyboardAction,
pub keysym: u32,
pub scan_code: i32,
pub modifiers: InputEventModifiers,
}Expand description
A keyboard event.
Fields§
§action: KeyboardActionThe keyboard action.
keysym: u32The xkeysym.
You may use the xkeysym crate to match against this.
scan_code: i32The raw scan code.
Prefer using the keysym.
modifiers: InputEventModifiersThe modifiers held during this event.
Auto Trait Implementations§
impl Freeze for KeyboardEvent
impl RefUnwindSafe for KeyboardEvent
impl Send for KeyboardEvent
impl Sync for KeyboardEvent
impl Unpin for KeyboardEvent
impl UnsafeUnpin for KeyboardEvent
impl UnwindSafe for KeyboardEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more