SDL_SetScancodeName - Set a human-readable name for a scancode.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
scancode
the desired SDL_Scancode .
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.
Header File
Defined in SDL3/SDL_keyboard.h
Name
SDL_SetScancodeName - Set a human-readable name for a scancode.
Return Value
Returns true on success or false on failure; call
SDL_GetError () for more information.
See Also
•(3), SDL_GetScancodeName(3) Simple Directmedia Layer SDL 3.2.10 SDL_SetScancodeName(3)
Synopsis
#include"SDL3/SDL.h"boolSDL_SetScancodeName(SDL_Scancodescancode,constchar*name);
Thread Safety
This function is not thread safe.
