diff --git a/app/streaming/input.cpp b/app/streaming/input.cpp index 5b1ce7f6..378ed3a7 100644 --- a/app/streaming/input.cpp +++ b/app/streaming/input.cpp @@ -87,6 +87,14 @@ SdlInputHandler::SdlInputHandler(StreamingPreferences& prefs, NvComputer*, int s SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_XBOX, "0"); #endif +#if SDL_VERSION_ATLEAST(2, 0, 9) + // Enabling extended input reports allows rumble to function on Bluetooth PS4 + // controllers, but breaks DirectInput applications. We will enable it because + // it's likely that working rumble is what the user is expecting. If they don't + // want this behavior, they can override it with the environment variable. + SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); +#endif + // We must initialize joystick explicitly before gamecontroller in order // to ensure we receive gamecontroller attach events for gamepads where // SDL doesn't have a built-in mapping. By starting joystick first, we