Struct rich_sdl2_rust::event::keyboard::KeySymbol
source · Expand description
A symbol on the keyboard with the modification and the relationship of actual and virtual key code.
Fields§
§scan_code: ScanCode
The actual key code on the keyboard.
key_code: KeyCode
The virtual key code on the keyboard.
key_mod: KeyMod
The 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.