From dec0dbff13d4091035209016eb2d0dd82c9aba58 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 12 Jun 2023 16:57:41 -0700
Subject: [PATCH] Fixed enumerating Steam Controllers on iOS
---
src/hidapi/ios/hid.m | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/hidapi/ios/hid.m b/src/hidapi/ios/hid.m
index 1091196027c6..024aabdc10e3 100644
--- a/src/hidapi/ios/hid.m
+++ b/src/hidapi/ios/hid.m
@@ -863,8 +863,8 @@ int HID_API_EXPORT hid_set_nonblocking(hid_device *dev, int nonblock)
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];