Function SDL_GetKeyFromName
pub unsafe extern "C" fn SDL_GetKeyFromName(name: *const i8) -> u32 ⓘ
Available on crate feature
dep_sdl3
only.Expand description
Get a key code from a human-readable name.
§Parameters
name
: the human-readable key name.
§Return value
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.
§Availability
This function is available since SDL 3.2.0.