Function SDL_GetScancodeFromName

pub unsafe extern "C" fn SDL_GetScancodeFromName(
    name: *const i8,
) -> SDL_Scancode
Available on crate feature dep_sdl2 only.
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