Struct sdl2_sys::SDL_Keysym
source · [−]#[repr(C)]pub struct SDL_Keysym {
pub scancode: SDL_Scancode,
pub sym: SDL_Keycode,
pub mod_: Uint16,
pub unused: Uint32,
}
Expand description
\brief The SDL keysym structure, used in key events.
\note If you are looking for translated character input, see the ::SDL_TEXTINPUT event.
Fields
scancode: SDL_Scancode
< SDL physical key code - see ::SDL_Scancode for details
sym: SDL_Keycode
< SDL virtual key code - see ::SDL_Keycode for details
mod_: Uint16
< current key modifiers
unused: Uint32
Trait Implementations
sourceimpl Clone for SDL_Keysym
impl Clone for SDL_Keysym
sourcefn clone(&self) -> SDL_Keysym
fn clone(&self) -> SDL_Keysym
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SDL_Keysym
Auto Trait Implementations
impl RefUnwindSafe for SDL_Keysym
impl Send for SDL_Keysym
impl Sync for SDL_Keysym
impl Unpin for SDL_Keysym
impl UnwindSafe for SDL_Keysym
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more