Struct fermium::keycode::SDL_Keycode [−][src]
#[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
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more