Function sdl2_sys::SDL_GetScancodeFromName
source · pub unsafe extern "C" fn SDL_GetScancodeFromName(
name: *const c_char,
) -> SDL_Scancode
Expand description
Get a scancode from a human-readable name.
\param name the human-readable scancode name
\returns the SDL_Scancode, or SDL_SCANCODE_UNKNOWN
if the name wasn’t
recognized; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_GetKeyFromName \sa SDL_GetScancodeFromKey \sa SDL_GetScancodeName