[][src]Struct fermium::events::SDL_KeyboardEvent

#[repr(C)]pub struct SDL_KeyboardEvent {
    pub type_: SDL_EventType,
    pub timestamp: u32,
    pub windowID: u32,
    pub state: u8,
    pub repeat: u8,
    pub padding2: u8,
    pub padding3: u8,
    pub keysym: SDL_Keysym,
}

Keyboard button event structure (event.key.*)

Fields

type_: SDL_EventType

Should always be SDL_KEYDOWN or SDL_KEYUP.

timestamp: u32windowID: u32

The window with keyboard focus, if any.

state: u8repeat: u8

Non-zero if this is a key repeat.

padding2: u8padding3: u8keysym: SDL_Keysym

The key that was pressed or released.

Trait Implementations

impl Clone for SDL_KeyboardEvent[src]

impl Copy for SDL_KeyboardEvent[src]

impl Debug for SDL_KeyboardEvent[src]

impl Default for SDL_KeyboardEvent[src]

impl Eq for SDL_KeyboardEvent[src]

impl Hash for SDL_KeyboardEvent[src]

impl Ord for SDL_KeyboardEvent[src]

impl PartialEq<SDL_KeyboardEvent> for SDL_KeyboardEvent[src]

impl PartialOrd<SDL_KeyboardEvent> for SDL_KeyboardEvent[src]

impl StructuralEq for SDL_KeyboardEvent[src]

impl StructuralPartialEq for SDL_KeyboardEvent[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.