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§
source§impl Clone for SDL_Keysym
impl Clone for SDL_Keysym
source§fn clone(&self) -> SDL_Keysym
fn clone(&self) -> SDL_Keysym
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for SDL_Keysym
Auto Trait Implementations§
impl Freeze for SDL_Keysym
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§
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