Set a human-readable name for a scancode.
Defined in <SDL3/SDL_keyboard.h>
const char *name); SDL_bool SDL_SetScancodeName(SDL_Scancode scancode,
SDL_Scancode | scancode | the desired SDL_Scancode. |
const char * | name | the name to use for the scancode, encoded as UTF-8. The string is not copied, so the pointer given to this function must stay valid while SDL is being used. |
(SDL_bool) Returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
This function is available since SDL 3.0.0.