include/SDL_hints.h
changeset 12088 399cc39583cc
parent 12059 320b43d5e5a7
child 12119 648377d0e573
     1.1 --- a/include/SDL_hints.h	Wed Aug 08 15:39:20 2018 -0400
     1.2 +++ b/include/SDL_hints.h	Thu Aug 09 16:00:17 2018 -0700
     1.3 @@ -466,6 +466,84 @@
     1.4  #define SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"
     1.5  
     1.6  /**
     1.7 + *  \brief  A variable controlling whether the HIDAPI joystick drivers should be used.
     1.8 + *
     1.9 + *  This variable can be set to the following values:
    1.10 + *    "0"       - HIDAPI drivers are not used
    1.11 + *    "1"       - HIDAPI drivers are used (the default)
    1.12 + *
    1.13 + *  This variable is the default for all drivers, but can be overridden by the hints for specific drivers below.
    1.14 + */
    1.15 +#define SDL_HINT_JOYSTICK_HIDAPI "SDL_JOYSTICK_HIDAPI"
    1.16 +
    1.17 +/**
    1.18 + *  \brief  A variable controlling whether the HIDAPI driver for PS4 controllers should be used.
    1.19 + *
    1.20 + *  This variable can be set to the following values:
    1.21 + *    "0"       - HIDAPI driver is not used
    1.22 + *    "1"       - HIDAPI driver is used
    1.23 + *
    1.24 + *  The default is the value of SDL_HINT_JOYSTICK_HIDAPI
    1.25 + */
    1.26 +#define SDL_HINT_JOYSTICK_HIDAPI_PS4 "SDL_JOYSTICK_HIDAPI_PS4"
    1.27 +
    1.28 +/**
    1.29 + *  \brief  A variable controlling whether the HIDAPI driver for Steam Controllers should be used.
    1.30 + *
    1.31 + *  This variable can be set to the following values:
    1.32 + *    "0"       - HIDAPI driver is not used
    1.33 + *    "1"       - HIDAPI driver is used
    1.34 + *
    1.35 + *  The default is the value of SDL_HINT_JOYSTICK_HIDAPI
    1.36 + */
    1.37 +#define SDL_HINT_JOYSTICK_HIDAPI_STEAM "SDL_JOYSTICK_HIDAPI_STEAM"
    1.38 +
    1.39 +/**
    1.40 + *  \brief  A variable controlling whether the HIDAPI driver for Nintendo Switch controllers should be used.
    1.41 + *
    1.42 + *  This variable can be set to the following values:
    1.43 + *    "0"       - HIDAPI driver is not used
    1.44 + *    "1"       - HIDAPI driver is used
    1.45 + *
    1.46 + *  The default is the value of SDL_HINT_JOYSTICK_HIDAPI
    1.47 + */
    1.48 +#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH "SDL_JOYSTICK_HIDAPI_SWITCH"
    1.49 +
    1.50 +/**
    1.51 + *  \brief  A variable controlling whether the HIDAPI driver for XBox 360 controllers should be used.
    1.52 + *
    1.53 + *  This variable can be set to the following values:
    1.54 + *    "0"       - HIDAPI driver is not used
    1.55 + *    "1"       - HIDAPI driver is used
    1.56 + *
    1.57 + *  The default is the value of SDL_HINT_JOYSTICK_HIDAPI
    1.58 + */
    1.59 +#define SDL_HINT_JOYSTICK_HIDAPI_XBOX360 "SDL_JOYSTICK_HIDAPI_XBOX360"
    1.60 +
    1.61 +/**
    1.62 + *  \brief  A variable controlling whether the HIDAPI driver for XBox One controllers should be used.
    1.63 + *
    1.64 + *  This variable can be set to the following values:
    1.65 + *    "0"       - HIDAPI driver is not used
    1.66 + *    "1"       - HIDAPI driver is used
    1.67 + *
    1.68 + *  The default is the value of SDL_HINT_JOYSTICK_HIDAPI
    1.69 + */
    1.70 +#define SDL_HINT_JOYSTICK_HIDAPI_XBOXONE "SDL_JOYSTICK_HIDAPI_XBOXONE"
    1.71 +
    1.72 +/**
    1.73 + *  \brief  A variable that controls whether Steam Controllers should be exposed using the SDL joystick and game controller APIs
    1.74 + *
    1.75 + *  The variable can be set to the following values:
    1.76 + *    "0"       - Do not scan for Steam Controllers
    1.77 + *    "1"       - Scan for Steam Controllers (the default)
    1.78 + *
    1.79 + *  The default value is "1".  This hint must be set before initializing the joystick subsystem.
    1.80 + */
    1.81 +#define SDL_HINT_ENABLE_STEAM_CONTROLLERS "SDL_ENABLE_STEAM_CONTROLLERS"
    1.82 +
    1.83 +
    1.84 +/**
    1.85   *  \brief If set to "0" then never set the top most bit on a SDL Window, even if the video mode expects it.
    1.86   *      This is a debugging aid for developers and not expected to be used by end users. The default is "1"
    1.87   *