pub unsafe extern "C" fn SDL_GetKeyFromName(
name: *const c_char,
) -> SDL_KeycodeExpand description
Get a key code from a human-readable name.
Parameter: name the human-readable key name.
Returns: key code, or SDLK_UNKNOWN if the name wasn’t recognized; call
SDL_GetError() for more information.
Thread Safety: This function is not thread safe.
Available Since: This function is available since SDL 3.2.0.
See Also: SDL_GetKeyFromScancode See Also: SDL_GetKeyName See Also: SDL_GetScancodeFromName