mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Fixed enumerating Steam Controllers on iOS
This commit is contained in:
@@ -863,8 +863,8 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ( vendor_id == 0 && product_id == 0 ) ||
|
if ( ( vendor_id == 0 || vendor_id == VALVE_USB_VID ) &&
|
||||||
( vendor_id == VALVE_USB_VID && product_id == D0G_BLE2_PID ) )
|
( product_id == 0 || product_id == D0G_BLE2_PID ) )
|
||||||
{
|
{
|
||||||
HIDBLEManager *bleManager = HIDBLEManager.sharedInstance;
|
HIDBLEManager *bleManager = HIDBLEManager.sharedInstance;
|
||||||
[bleManager updateConnectedSteamControllers:false];
|
[bleManager updateConnectedSteamControllers:false];
|
||||||
|
Reference in New Issue
Block a user