Added SDL_HINT_HIDAPI_LIBUSB_GAMECUBE

Fixes https://github.com/libsdl-org/SDL/issues/14682
This commit is contained in:
Sam Lantinga
2025-12-30 14:14:51 -08:00
parent 1a27b5b838
commit 128b9260ec
2 changed files with 26 additions and 2 deletions

View File

@@ -1084,6 +1084,21 @@ extern "C" {
*/
#define SDL_HINT_HIDAPI_LIBUSB "SDL_HIDAPI_LIBUSB"
/**
* A variable to control whether HIDAPI uses libusb for GameCube adapters.
*
* The variable can be set to the following values:
*
* - "0": HIDAPI will not use libusb for GameCube adapters.
* - "1": HIDAPI will use libusb for GameCube adapters if available. (default)
*
* This hint should be set before SDL is initialized.
*
* \since This hint is available since SDL 3.2.0.
*/
#define SDL_HINT_HIDAPI_LIBUSB_GAMECUBE "SDL_HIDAPI_LIBUSB_GAMECUBE"
/**
* A variable to control whether HIDAPI uses libusb only for whitelisted
* devices.