include/SDL_hints.h
branchiOS-improvements
changeset 9536 3c87b8f9dc58
parent 9533 e5693e855338
parent 9438 fff5af5de6dd
child 9603 8e570fd79352
child 11073 18f38a347662
     1.1 --- a/include/SDL_hints.h	Sat Jan 24 23:58:07 2015 -0400
     1.2 +++ b/include/SDL_hints.h	Mon Apr 06 15:26:37 2015 -0300
     1.3 @@ -533,6 +533,18 @@
     1.4   */
     1.5  #define SDL_HINT_IME_INTERNAL_EDITING "SDL_IME_INTERNAL_EDITING"
     1.6  
     1.7 + /**
     1.8 + * \brief A variable to control whether mouse and touch events are to be treated together or separately
     1.9 + *
    1.10 + * The variable can be set to the following values:
    1.11 + *   "0"       - Mouse events will be handled as touch events, and touch will raise fake mouse
    1.12 + *               events. This is the behaviour of SDL <= 2.0.3. (default)
    1.13 + *   "1"       - Mouse events will be handled separately from pure touch events.
    1.14 + *
    1.15 + * The value of this hint is used at runtime, so it can be changed at any time.
    1.16 + */
    1.17 +#define SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH "SDL_ANDROID_SEPARATE_MOUSE_AND_TOUCH"
    1.18 +
    1.19  /**
    1.20   *  \brief override the binding element for keyboard inputs for Emscripten builds
    1.21   *
    1.22 @@ -548,6 +560,18 @@
    1.23  #define SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT   "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"
    1.24  
    1.25  /**
    1.26 + *  \brief Tell SDL not to catch the SIGINT or SIGTERM signals.
    1.27 + *
    1.28 + * This hint only applies to Unix-like platforms.
    1.29 + *
    1.30 + * The variable can be set to the following values:
    1.31 + *   "0"       - SDL will install a SIGINT and SIGTERM handler, and when it
    1.32 + *               catches a signal, convert it into an SDL_QUIT event.
    1.33 + *   "1"       - SDL will not install a signal handler at all.
    1.34 + */
    1.35 +#define SDL_HINT_NO_SIGNAL_HANDLERS   "SDL_NO_SIGNAL_HANDLERS"
    1.36 +
    1.37 +/**
    1.38   *  \brief  An enumeration of hint priorities
    1.39   */
    1.40  typedef enum