Added simple BLE Steam Controller support on all platforms

This is still disabled by default via the hint SDL_HINT_JOYSTICK_HIDAPI_STEAM
This commit is contained in:
Sam Lantinga 2022-11-10 19:16:53 -08:00
parent f430ef5ddc
commit 0dfc829a6b
11 changed files with 53 additions and 22 deletions

View file

@ -793,6 +793,7 @@ main(int argc, char *argv[])
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_STEAM, "1");
SDL_SetHint(SDL_HINT_JOYSTICK_ROG_CHAKRAM, "1");
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
SDL_SetHint(SDL_HINT_LINUX_JOYSTICK_DEADZONES, "1");