Function fermium::keyboard::SDL_GetKeyboardState[][src]

pub unsafe extern "C" fn SDL_GetKeyboardState(numkeys: *mut c_int) -> *const u8

Get a snapshot of the current state of the keyboard.

  • numkeys if non-NULL, receives the length of the returned array.

Returns: An array of key states. Indexes into this array are obtained by using SDL_Scancode values.