SDL_GetKeyName

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.

extern (C) nothrow @nogc extern
const(char)*
SDL_GetKeyName

Parameters

key SDL_Keycode

the desired SDL_Keycode to query.

Return Value

Type: const(char)*

a UTF-8 encoded string of the key name.

Threadsafety: This function is not thread safe.

See Also

Meta