include/SDL_hints.h
changeset 11768 0f2fb9ec6ad6
parent 11745 bb8a8a1996d1
child 11782 98ea6e4c0d68
     1.1 --- a/include/SDL_hints.h	Tue Dec 12 12:52:17 2017 -0800
     1.2 +++ b/include/SDL_hints.h	Tue Dec 12 12:52:23 2017 -0800
     1.3 @@ -720,6 +720,19 @@
     1.4   */
     1.5  #define SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH "SDL_ANDROID_SEPARATE_MOUSE_AND_TOUCH"
     1.6  
     1.7 + /**
     1.8 + * \brief A variable to control whether the return key on the soft keyboard should hide the 
     1.9 + * soft keyboard on Android.
    1.10 + *
    1.11 + * The variable can be set to the following values:
    1.12 + *   "0"       - The return key will be handled as a key event. This is the behaviour of 
    1.13 + *               SDL <= 2.0.3. (default)
    1.14 + *   "1"       - The return key will hide the keyboard.
    1.15 + *
    1.16 + * The value of this hint is used at runtime, so it can be changed at any time.
    1.17 + */
    1.18 +#define SDL_HINT_ANDROID_RETURN_HIDES_IME "SDL_ANDROID_RETURN_HIDES_IME"
    1.19 +
    1.20  /**
    1.21   *  \brief override the binding element for keyboard inputs for Emscripten builds
    1.22   *