Added a hint to control whether the player LEDs should be lit to indicate which player is associated with a PS5 controller.

This commit is contained in:
Sam Lantinga
2020-12-29 12:13:10 -08:00
parent 6116ccf035
commit 0684572ccc
2 changed files with 33 additions and 1 deletions

View File

@@ -645,6 +645,15 @@ extern "C" {
*/
#define SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE "SDL_JOYSTICK_HIDAPI_PS5_RUMBLE"
/**
* \brief A variable controlling whether the player LEDs should be lit to indicate which player is associated with a PS5 controller.
*
* This variable can be set to the following values:
* "0" - player LEDs are not enabled
* "1" - player LEDs are enabled (the default)
*/
#define SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED "SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED"
/**
* \brief A variable controlling whether the HIDAPI driver for Steam Controllers should be used.
*