EMSCRIPTEN_KEYBOARD_ELEMENT
Description:
[ Version ( since = "2.0.4" ) ]
[ CCode ( cname = "SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT" ) ]
public const string EMSCRIPTEN_KEYBOARD_ELEMENT
[ CCode ( cname = "SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT" ) ]
public const string EMSCRIPTEN_KEYBOARD_ELEMENT
A hint that specifies a value to override the binding element for keyboard inputs for Emscripten builds.
The variable can be set to the following values:
- "#window" - the JavaScript window object (this is the default)
- "#document" - the JavaScript document object
- "#screen" - the JavaScript window.screen object
- "#canvas" - the default WebGL canvas element
Any other string without a leading # sign applies to the element on the page with that ID.
By default SDL will use the JavaScript window object.
Namespace: SDL.Hint
Package: sdl2