Function SDL_GetKeyName

pub unsafe extern "C" fn SDL_GetKeyName(key: u32) -> *const i8
Available on crate feature dep_sdl3 only.
Expand description

Get a human-readable name for a key.

If the key doesn’t have a name, this function returns an empty string (“”).

Letters will be presented in their uppercase form, if applicable.

§Parameters

§Return value

Returns a UTF-8 encoded string of the key name.

§Thread safety

This function is not thread safe.

§Availability

This function is available since SDL 3.2.0.

§See also