Added initial support for Wii controllers (thanks @tellowkrinkle!)

This commit is contained in:
Sam Lantinga
2022-09-01 15:29:01 -07:00
parent 2847696338
commit c72e14e8f4
11 changed files with 907 additions and 2 deletions

View File

@@ -854,6 +854,17 @@ extern "C" {
*/
#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED "SDL_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED"
/**
* \brief A variable controlling whether the HIDAPI driver for Nintendo Wii and Wii U 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_WII "SDL_JOYSTICK_HIDAPI_WII"
/**
* \brief A variable controlling whether the HIDAPI driver for XBox controllers should be used.
*