Struct fermium::keycode::SDL_Keycode
source · #[repr(transparent)]pub struct SDL_Keycode(pub i32);
Expand description
The SDL keyboard keycode representation.
This is used in places like the SDL_Keysym
struct for the “software” /
“logical” designation of a key.
Values of this type are used to represent keyboard keys using the current layout of the keyboard. These values include Unicode values representing the unmodified character that would be generated by pressing the key, or an SDLK_* constant for those keys that do not generate characters.
A special exception is the number keys at the top of the keyboard which
always map to SDLK_0
through SDLK_9
, regardless of layout.
See all the constants named SDLK_*
Tuple Fields§
§0: i32
Trait Implementations§
source§impl Clone for SDL_Keycode
impl Clone for SDL_Keycode
source§fn clone(&self) -> SDL_Keycode
fn clone(&self) -> SDL_Keycode
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_Keycode
impl Debug for SDL_Keycode
source§impl Default for SDL_Keycode
impl Default for SDL_Keycode
source§fn default() -> SDL_Keycode
fn default() -> SDL_Keycode
Returns the “default value” for a type. Read more
source§impl Hash for SDL_Keycode
impl Hash for SDL_Keycode
source§impl Ord for SDL_Keycode
impl Ord for SDL_Keycode
source§fn cmp(&self, other: &SDL_Keycode) -> Ordering
fn cmp(&self, other: &SDL_Keycode) -> 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_Keycode> for SDL_Keycode
impl PartialEq<SDL_Keycode> for SDL_Keycode
source§fn eq(&self, other: &SDL_Keycode) -> bool
fn eq(&self, other: &SDL_Keycode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_Keycode> for SDL_Keycode
impl PartialOrd<SDL_Keycode> for SDL_Keycode
source§fn partial_cmp(&self, other: &SDL_Keycode) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_Keycode) -> 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 more