SDL_GetKeyName3
Get a human-readable name for a key.
Usage
#include "SDL3/SDL.h"
const char * SDL_GetKeyName(SDL_Keycode key);
Header file
Defined in SDL3/SDL_keyboard.h
Overview
If the key doesn't have a name, this function returns an empty string ("").
Letters will be presented in their uppercase form, if applicable.
Function parameters
- key
-
the desired
SDL_Keycode
to query.
Return value
Returns a UTF-8 encoded string of the key name.
Thread safety
This function is not thread safe.
Releases
12 releases since Debian 3.0 (Woody); the text changed 2 times.