include/SDL_hints.h
changeset 10378 cb7f88c92a2e
parent 10352 d11894522a9a
child 10404 a990b0da18cc
equal deleted inserted replaced
10377:7fde2d881171 10378:cb7f88c92a2e
   231  *  By default SDL will not grab the keyboard so system shortcuts still work.
   231  *  By default SDL will not grab the keyboard so system shortcuts still work.
   232  */
   232  */
   233 #define SDL_HINT_GRAB_KEYBOARD              "SDL_GRAB_KEYBOARD"
   233 #define SDL_HINT_GRAB_KEYBOARD              "SDL_GRAB_KEYBOARD"
   234 
   234 
   235 /**
   235 /**
   236 *  \brief  A variable controlling whether relative mouse mode is implemented using mouse warping
   236  *  \brief  A variable controlling whether relative mouse mode is implemented using mouse warping
   237 *
   237  *
   238 *  This variable can be set to the following values:
   238  *  This variable can be set to the following values:
   239 *    "0"       - Relative mouse mode uses raw input
   239  *    "0"       - Relative mouse mode uses raw input
   240 *    "1"       - Relative mouse mode uses mouse warping
   240  *    "1"       - Relative mouse mode uses mouse warping
   241 *
   241  *
   242 *  By default SDL will use raw input for relative mouse mode
   242  *  By default SDL will use raw input for relative mouse mode
   243 */
   243  */
   244 #define SDL_HINT_MOUSE_RELATIVE_MODE_WARP    "SDL_MOUSE_RELATIVE_MODE_WARP"
   244 #define SDL_HINT_MOUSE_RELATIVE_MODE_WARP    "SDL_MOUSE_RELATIVE_MODE_WARP"
       
   245 
       
   246 /**
       
   247  *  \brief Allow mouse click events when clicking to focus an SDL window
       
   248  *
       
   249  *  This variable can be set to the following values:
       
   250  *    "0"       - Ignore mouse clicks that activate a window
       
   251  *    "1"       - Generate events for mouse clicks that activate a window
       
   252  *
       
   253  *  By default SDL will ignore mouse clicks that activate a window
       
   254  */
       
   255 #define SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH "SDL_MOUSE_FOCUS_CLICKTHROUGH"
   245 
   256 
   246 /**
   257 /**
   247  *  \brief Minimize your SDL_Window if it loses key focus when in fullscreen mode. Defaults to true.
   258  *  \brief Minimize your SDL_Window if it loses key focus when in fullscreen mode. Defaults to true.
   248  *
   259  *
   249  */
   260  */
   574 *
   585 *
   575 */
   586 */
   576 #define SDL_HINT_MAC_BACKGROUND_APP    "SDL_MAC_BACKGROUND_APP"
   587 #define SDL_HINT_MAC_BACKGROUND_APP    "SDL_MAC_BACKGROUND_APP"
   577 
   588 
   578 /**
   589 /**
   579  *  \brief Allow mouse click events when clicking to focus an SDL window
       
   580  *
       
   581  *  This hint only applies to Mac OS X.
       
   582  */
       
   583 #define SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH "SDL_MAC_MOUSE_FOCUS_CLICKTHROUGH"
       
   584 
       
   585 /**
       
   586  * \brief Android APK expansion main file version. Should be a string number like "1", "2" etc.
   590  * \brief Android APK expansion main file version. Should be a string number like "1", "2" etc.
   587  *
   591  *
   588  * Must be set together with SDL_HINT_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION.
   592  * Must be set together with SDL_HINT_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION.
   589  *
   593  *
   590  * If both hints were set then SDL_RWFromFile() will look into expansion files
   594  * If both hints were set then SDL_RWFromFile() will look into expansion files