Fixed Victrix FS Pro V2 controller hang on reboot

(cherry picked from commit 9e997cc787)
This commit is contained in:
Sam Lantinga 2022-11-30 15:39:10 -08:00
parent f8c3528c55
commit 27e8eb4ca8
1 changed files with 9 additions and 0 deletions

View File

@ -370,6 +370,15 @@ static SDL_bool HIDAPI_DriverPS4_InitDevice(SDL_HIDAPI_Device *device)
}
ctx->effects_supported = (ctx->lightbar_supported || ctx->vibration_supported);
if (device->vendor_id == USB_VENDOR_PDP &&
device->product_id == USB_PRODUCT_VICTRIX_FS_PRO_V2) {
/* The Victrix FS Pro V2 reports that it has lightbar support,
* but it doesn't respond to the effects packet, and will hang
* on reboot if we send it.
*/
ctx->effects_supported = SDL_FALSE;
}
device->joystick_type = joystick_type;
device->type = SDL_CONTROLLER_TYPE_PS4;
if (device->vendor_id == USB_VENDOR_SONY) {