Fixed enumerating Steam Controllers on iOS

main
Sam Lantinga 2023-06-12 16:57:41 -07:00
parent d95dbe78bb
commit dec0dbff13
1 changed files with 2 additions and 2 deletions

View File

@ -863,8 +863,8 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
return NULL;
}
if ( ( vendor_id == 0 && product_id == 0 ) ||
( vendor_id == VALVE_USB_VID && product_id == D0G_BLE2_PID ) )
if ( ( vendor_id == 0 || vendor_id == VALVE_USB_VID ) &&
( product_id == 0 || product_id == D0G_BLE2_PID ) )
{
HIDBLEManager *bleManager = HIDBLEManager.sharedInstance;
[bleManager updateConnectedSteamControllers:false];