DOKK / manpages / debian 13 / libsdl3-doc / SDL_SetScancodeName.3.en
SDL_SetScancodeName(3) SDL3 FUNCTIONS SDL_SetScancodeName(3)

SDL_SetScancodeName - Set a human-readable name for a scancode.

Defined in SDL3/SDL_keyboard.h

#include "SDL3/SDL.h"
bool SDL_SetScancodeName(SDL_Scancode scancode, const char *name);

the desired SDL_Scancode .
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.

Returns true on success or false on failure; call

SDL_GetError () for more information.

This function is not thread safe.

This function is available since SDL 3.2.0.

(3), SDL_GetScancodeName(3)

SDL 3.2.10 Simple Directmedia Layer