Wiki Page Content

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.


CategoryDefine, CategoryHints

None: SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT (last edited 2014-12-26 21:38:19 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit