forked from Ports/perfect_dark
Merge pull request #636 from AL2009man/SteamDeck-HID
Steam Controller/Deck HIDAPI Hint Support
This commit is contained in:
1 file changed
+4
@@ -693,6 +693,7 @@ s32 inputInit(void)
|
|||||||
// the two hints below enable Rumble and Motion Sensor for PS4/5 pads connected via bluetooth
|
// 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_PS4_RUMBLE, "1");
|
||||||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
|
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
|
||||||
|
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_STEAM, "1");
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VERSION_ATLEAST(2, 23, 2)
|
#if SDL_VERSION_ATLEAST(2, 23, 2)
|
||||||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS, "1");
|
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS, "1");
|
||||||
@@ -702,6 +703,9 @@ s32 inputInit(void)
|
|||||||
#endif
|
#endif
|
||||||
#if SDL_VERSION_ATLEAST(2, 26, 0)
|
#if SDL_VERSION_ATLEAST(2, 26, 0)
|
||||||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_WII, "1");
|
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
|
#endif
|
||||||
}
|
}
|
||||||
if (useRawInput) {
|
if (useRawInput) {
|
||||||
|
|||||||
Reference in new issue
Block a user