joystick: Add HIDAPI driver for NVIDIA SHIELD 2017 controller

Basic input already works using the OS HID driver, but this enables
force feedback and battery state reporting.
This commit is contained in:
Cameron Gutman 2022-07-09 22:55:36 -05:00 committed by Sam Lantinga
parent 3242265ff1
commit 6e712d2440
15 changed files with 499 additions and 3 deletions

View file

@ -674,6 +674,17 @@ extern "C" {
*/
#define SDL_HINT_JOYSTICK_HIDAPI_LUNA "SDL_JOYSTICK_HIDAPI_LUNA"
/**
* \brief A variable controlling whether the HIDAPI driver for NVIDIA SHIELD controllers should be used.
*
* This variable can be set to the following values:
* "0" - HIDAPI driver is not used
* "1" - HIDAPI driver is used
*
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI
*/
#define SDL_HINT_JOYSTICK_HIDAPI_SHIELD "SDL_JOYSTICK_HIDAPI_SHIELD"
/**
* \brief A variable controlling whether the HIDAPI driver for PS4 controllers should be used.
*