include/SDL_hints.h
changeset 9278 8900afb78a19
parent 9255 c2ef0d8d6da0
child 9292 e0868ad5810c
     1.1 --- a/include/SDL_hints.h	Sat Dec 13 02:33:52 2014 -0500
     1.2 +++ b/include/SDL_hints.h	Thu Dec 18 00:19:52 2014 -0500
     1.3 @@ -533,6 +533,20 @@
     1.4  #define SDL_HINT_IME_INTERNAL_EDITING "SDL_IME_INTERNAL_EDITING"
     1.5  
     1.6  /**
     1.7 + *  \brief override the binding element for keyboard inputs for Emscripten builds
     1.8 + *
     1.9 + * This hint only applies to the emscripten platform
    1.10 + *
    1.11 + * The variable can be one of
    1.12 + *    "#window"      - The javascript window object (this is the default)
    1.13 + *    "#document"    - The javascript document object
    1.14 + *    "#screen"      - the javascript window.screen object
    1.15 + *    "#canvas"      - the WebGL canvas element
    1.16 + *    any other string without a leading # sign apples to the element on the page with that ID.
    1.17 + */
    1.18 +#define SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT   "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"
    1.19 +
    1.20 +/**
    1.21   *  \brief  An enumeration of hint priorities
    1.22   */
    1.23  typedef enum