[][src]Constant fermium::hints::SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT

pub const SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT: &[u8];

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.