Merge pull request #636 from AL2009man/SteamDeck-HID

Steam Controller/Deck HIDAPI Hint Support
This commit is contained in:
fgsfds authored and GitHub committed 2025-07-22 21:33:55 +02:00
commit 6591281d99
1 file changed
+4
+4
View File
@@ -693,6 +693,7 @@ s32 inputInit(void)
// the two hints below enable Rumble and Motion Sensor for PS4/5 pads connected via bluetooth
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");
#endif
#if SDL_VERSION_ATLEAST(2, 23, 2)
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS, "1");
@@ -702,6 +703,9 @@ s32 inputInit(void)
#endif
#if SDL_VERSION_ATLEAST(2, 26, 0)
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_WII, "1");
#endif
#if SDL_VERSION_ATLEAST(2, 30, 0)
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_STEAMDECK, "1");
#endif
}
if (useRawInput) {