table of contents
- trixie 3.2.10+ds-1
- testing 3.2.24+ds-1
- unstable 3.2.26+ds-1
- experimental 3.3.2+git20251029~d9ca045+ds-1
| SDL_GetKeyFromScancode(3) | SDL3 FUNCTIONS | SDL_GetKeyFromScancode(3) |
NAME¶
SDL_GetKeyFromScancode - Get the key code corresponding to the given scancode according to the current keyboard layout.
SYNOPSIS¶
#include <SDL3/SDL_keyboard.h>
SDL_Keycode SDL_GetKeyFromScancode(SDL_Scancode scancode, SDL_Keymod modstate, bool key_event);
DESCRIPTION¶
If you want to get the keycode as it would be delivered in key events, including options specified in SDL_HINT_KEYCODE_OPTIONS, then you should pass key_event as true. Otherwise this function simply translates the scancode based on the given modifier state.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns the SDL_Keycode that corresponds to the given SDL_Scancode.
THREAD SAFETY¶
This function is not thread safe.
AVAILABILITY¶
This function is available since SDL 3.2.0.
SEE ALSO¶
| SDL 3.2.26 | Simple Directmedia Layer |