Added support for the PowerA Fusion Pro Wireless Controller in Bluetooth mode

This controller shows up with a VID/PID of 0, but has full functionality over Bluetooth
This commit is contained in:
Sam Lantinga 2023-06-13 22:20:58 -07:00
parent 0f4b15e16b
commit cdfc0c5a33
5 changed files with 26 additions and 13 deletions

View file

@ -653,10 +653,16 @@ void HIDAPI_SetDeviceName(SDL_HIDAPI_Device *device, const char *name)
}
}
void HIDAPI_SetDeviceProduct(SDL_HIDAPI_Device *device, Uint16 product_id)
void HIDAPI_SetDeviceVendor(SDL_HIDAPI_Device *device, Uint16 vendor_id)
{
/* Don't set the device vendor ID directly, or we'll constantly re-enumerate this device */
SDL_SetJoystickGUIDVendor(&device->guid, vendor_id);
}
void HIDAPI_SetDeviceProduct(SDL_HIDAPI_Device *device, Uint16 vendor_id, Uint16 product_id)
{
/* Don't set the device product ID directly, or we'll constantly re-enumerate this device */
SDL_SetJoystickGUIDProduct(&device->guid, product_id);
device->guid = SDL_CreateJoystickGUID(device->guid.data[0], vendor_id, product_id, device->version, device->name, 'h', 0);
}
static void HIDAPI_UpdateJoystickSerial(SDL_HIDAPI_Device *device)