Backport 8BitDo HIDAPI Driver to SDL2 (#15207)

This commit is contained in:
Kushagra Shukla
2026-03-15 03:50:29 +05:30
committed by GitHub
parent 22a6d76f22
commit 650aceb609
15 changed files with 790 additions and 3 deletions

View File

@@ -827,6 +827,19 @@ extern "C" {
*/
#define SDL_HINT_JOYSTICK_HIDAPI "SDL_JOYSTICK_HIDAPI"
/**
* A variable controlling whether the HIDAPI driver for 8BitDo controllers
* should be used.
*
* The 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 GameCube
* controllers should be used.