[][src]Struct fermium::keycode::SDL_Keycode

#[repr(transparent)]pub struct SDL_Keycode(pub i32);

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_*

Trait Implementations

impl Clone for SDL_Keycode[src]

impl Copy for SDL_Keycode[src]

impl Debug for SDL_Keycode[src]

impl Default for SDL_Keycode[src]

impl Eq for SDL_Keycode[src]

impl Hash for SDL_Keycode[src]

impl Ord for SDL_Keycode[src]

impl PartialEq<SDL_Keycode> for SDL_Keycode[src]

impl PartialOrd<SDL_Keycode> for SDL_Keycode[src]

impl StructuralEq for SDL_Keycode[src]

impl StructuralPartialEq for SDL_Keycode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.