SDL Wiki

Draft

THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!

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.

Remarks

This hint only applies to the Emscripten platform.

Version

This hint is available since SDL 2.0.4.


CategoryDefine, CategoryHints, CategoryDraft


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.