Scroll to navigation

SDL_GetDefaultKeyFromScancode(3) SDL3 FUNCTIONS SDL_GetDefaultKeyFromScancode(3)

NAME

SDL_GetDefaultKeyFromScancode - Get the key code corresponding to the given scancode according to a default en_US keyboard layout.

HEADER FILE

Defined in SDL3/SDL_keyboard.h

SYNOPSIS

#include "SDL3/SDL.h"
SDL_Keycode SDL_GetDefaultKeyFromScancode(SDL_Scancode scancode, SDL_Keymod modstate);

DESCRIPTION

See SDL_Keycode
for details.

FUNCTION PARAMETERS

the desired SDL_Scancode
to query.
the modifier state to use when translating the scancode to a keycode.

RETURN VALUE

( SDL_Keycode ) Returns the SDL_Keycode
that corresponds to the given SDL_Scancode .

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

(3), SDL_GetKeyName(3), (3), SDL_GetScancodeFromKey(3)

SDL 3.1.2 Simple Directmedia Layer