Enable bluetooth gyro support for DualShock 4 and DualSense

This commit is contained in:
ceski 2024-08-11 12:49:22 -07:00
parent 9b91cec258
commit 31d7a39490

View File

@ -415,6 +415,10 @@ void I_InitGamepad(void)
return; return;
} }
// Enable bluetooth gyro support for DualShock 4 and DualSense.
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
if (SDL_Init(SDL_INIT_GAMECONTROLLER) < 0) if (SDL_Init(SDL_INIT_GAMECONTROLLER) < 0)
{ {
I_Printf(VB_WARNING, I_Printf(VB_WARNING,