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 From<SDL_Keysym> for KeySymbol
impl From<SDL_Keysym> for KeySymbol
Source§fn from(sym: SDL_Keysym) -> Self
fn from(sym: SDL_Keysym) -> Self
Converts to this type from the input type.
impl Copy for KeySymbol
impl Eq for KeySymbol
impl StructuralPartialEq for KeySymbol
Auto Trait Implementations§
impl Freeze for KeySymbol
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