Added SDL_HINT_JOYSTICK_HIDAPI_STEAM_HOME_LED

This commit is contained in:
Sam Lantinga 2024-11-18 14:42:39 -08:00
parent 184da780f5
commit d8f8cf3e99
2 changed files with 63 additions and 0 deletions

View file

@ -1659,6 +1659,25 @@ extern "C" {
*/
#define SDL_HINT_JOYSTICK_HIDAPI_STEAM "SDL_JOYSTICK_HIDAPI_STEAM"
/**
* A variable controlling whether the Steam button LED should be turned on when
* a Steam controller is opened.
*
* The variable can be set to the following values:
*
* - "0": Steam button LED is turned off.
* - "1": Steam button LED is turned on.
*
* By default the Steam button LED state is not changed. This hint can also be
* set to a floating point value between 0.0 and 1.0 which controls the
* brightness of the Steam button LED.
*
* This hint can be set anytime.
*
* \since This hint is available since SDL 3.1.8.
*/
#define SDL_HINT_JOYSTICK_HIDAPI_STEAM_HOME_LED "SDL_JOYSTICK_HIDAPI_STEAM_HOME_LED"
/**
* A variable controlling whether the HIDAPI driver for the Steam Deck builtin
* controller should be used.