Struct rich_sdl2_rust::event::keyboard::KeySymbol
source · pub struct KeySymbol {
pub scan_code: ScanCode,
pub key_code: KeyCode,
pub key_mod: KeyMod,
}Expand description
A symbol on the keyboard with the modification and the relationship of actual and virtual key code.
Fields§
§scan_code: ScanCodeThe actual key code on the keyboard.
key_code: KeyCodeThe virtual key code on the keyboard.
key_mod: KeyModThe key modification on the keyboard.
Trait Implementations§
source§impl PartialEq for KeySymbol
impl PartialEq for KeySymbol
impl Copy for KeySymbol
impl Eq for KeySymbol
impl StructuralPartialEq for KeySymbol
Auto Trait Implementations§
impl RefUnwindSafe for KeySymbol
impl Send for KeySymbol
impl Sync for KeySymbol
impl Unpin for KeySymbol
impl UnwindSafe for KeySymbol
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