Struct fermium::keyboard::SDL_Keysym
source · #[repr(C)]pub struct SDL_Keysym {
pub scancode: SDL_Scancode,
pub sym: SDL_Keycode,
pub mod_: u16,
pub unused: u32,
}
Expand description
SDL uses this for key events.
Key events are for raw key events. For translated textual input you want the “text input” events instead.
Fields§
§scancode: SDL_Scancode
SDL physical key code
sym: SDL_Keycode
SDL virtual key code
mod_: u16
current key modifiers
unused: u32
unused padding field
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 moresource§impl Debug for SDL_Keysym
impl Debug for SDL_Keysym
source§impl Default for SDL_Keysym
impl Default for SDL_Keysym
source§fn default() -> SDL_Keysym
fn default() -> SDL_Keysym
Returns the “default value” for a type. Read more
source§impl Hash for SDL_Keysym
impl Hash for SDL_Keysym
source§impl Ord for SDL_Keysym
impl Ord for SDL_Keysym
source§fn cmp(&self, other: &SDL_Keysym) -> Ordering
fn cmp(&self, other: &SDL_Keysym) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SDL_Keysym> for SDL_Keysym
impl PartialEq<SDL_Keysym> for SDL_Keysym
source§fn eq(&self, other: &SDL_Keysym) -> bool
fn eq(&self, other: &SDL_Keysym) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_Keysym> for SDL_Keysym
impl PartialOrd<SDL_Keysym> for SDL_Keysym
source§fn partial_cmp(&self, other: &SDL_Keysym) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_Keysym) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SDL_Keysym
impl Eq for SDL_Keysym
impl StructuralEq for SDL_Keysym
impl StructuralPartialEq 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§
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