Corrected the Victrix FS Pro as a PS4 controller instead of a PS3 controller

This commit is contained in:
Sam Lantinga
2023-06-23 14:27:21 -07:00
parent 6b12fbc6b7
commit 44bae1e8a9
3 changed files with 5 additions and 3 deletions

View File

@@ -396,7 +396,8 @@ 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) {
(device->product_id == USB_PRODUCT_VICTRIX_FS_PRO ||
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.