Fixed locking up the Logitech F310 with the PlayStation controller detection

This commit is contained in:
Sam Lantinga
2023-02-28 08:36:31 -08:00
parent c824060503
commit da134a3039
6 changed files with 56 additions and 24 deletions

View File

@@ -278,7 +278,7 @@ static SDL_bool HIDAPI_DriverPS5_IsSupportedDevice(SDL_HIDAPI_Device *device, co
return SDL_TRUE;
}
if (SONY_THIRDPARTY_VENDOR(vendor_id)) {
if (HIDAPI_SupportsPlaystationDetection(vendor_id, product_id)) {
if (device && device->dev) {
size = ReadFeatureReport(device->dev, k_EPS5FeatureReportIdCapabilities, data, sizeof data);
if (size == 48 && data[2] == 0x28) {