SDL_GetScancodeFromKey

Get the scancode corresponding to the given key code according to the current keyboard layout.

Note that there may be multiple scancode+modifier states that can generate this keycode, this will just return the first one found.

extern (C) nothrow @nogc extern
SDL_GetScancodeFromKey

Parameters

key SDL_Keycode

the desired SDL_Keycode to query.

modstate SDL_Keymod*

a pointer to the modifier state that would be used when the scancode generates this key, may be NULL.

Return Value

The SDL_Scancode that corresponds to the given SDL_Keycode.

Threadsafety: This function is not thread safe.

See Also

Meta