Constant fermium::hints::SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT
source · pub const SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT: &[u8];
Expand description
Override the binding element for keyboard inputs for Emscripten builds
This hint only applies to the emscripten platform
The variable can be one of
- “#window”: The javascript window object (this is the default)
- “#document”: The javascript document object
- “#screen”: the javascript window.screen object
- “#canvas”: the WebGL canvas element
any other string without a leading # sign applies to the element on the page with that ID.