Struct sdl2_sys::SDL_KeyboardEvent [] [src]

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

\brief Keyboard button event structure (event.key.*)

Fields

< ::SDL_KEYDOWN or ::SDL_KEYUP

< The window with keyboard focus, if any

< ::SDL_PRESSED or ::SDL_RELEASED

< Non-zero if this is a key repeat

< The key that was pressed or released

Trait Implementations

impl Debug for SDL_KeyboardEvent
[src]

[src]

Formats the value using the given formatter.

impl Copy for SDL_KeyboardEvent
[src]

impl Clone for SDL_KeyboardEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more