Added HIDAPI support for the 8BitDo Ultimate 2 Wireless Controller running firmware v1.03 or newer over Bluetooth.
This commit is contained in:
8BitDo
2025-04-01 00:56:01 +08:00
committed by GitHub
parent 6b1d6bfbe7
commit e18c6bd2e7
13 changed files with 465 additions and 1 deletions

View File

@@ -1734,6 +1734,19 @@ extern "C" {
*/
#define SDL_HINT_JOYSTICK_HIDAPI_LG4FF "SDL_JOYSTICK_HIDAPI_LG4FF"
/**
* A variable controlling whether the HIDAPI driver for 8BitDo
* 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_8BITDO "SDL_JOYSTICK_HIDAPI_8BITDO"
/**
* A variable controlling whether the HIDAPI driver for Nintendo Switch
* controllers should be used.