SDL_GetKeyFromName

Get a key code from a human-readable name.

extern (C) nothrow @nogc extern
SDL_GetKeyFromName
(
const(char)* name
)

Parameters

name const(char)*

the human-readable key name.

Return Value

key code, or SDLK_UNKNOWN if the name wasn't recognized; call SDL_GetError() for more information.

Threadsafety: This function is not thread safe.

See Also

Meta