(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)

SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT

override the binding element for keyboard inputs for Emscripten builds

Header File

Defined in SDL_hints.h

Syntax

#define SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT   "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"

Remarks

This hint only applies to the emscripten platform.

The variable can be one of:

Any other string without a leading # sign applies to the element on the page with that ID.


CategoryAPI, CategoryAPIMacro, CategoryHints