DRAFT |
SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT
A hint that specifies a value to override the binding element for keyboard inputs for Emscripten builds.
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.
Default
By default SDL will use the JavaScript window object.
Code Examples
You can add your code example here
Remarks
This hint only applies to the Emscripten platform.
Version
This hint is available since SDL 2.0.4.