public static int GetCount(USBH_DeviceType type) { int n = 0; foreach (USBH_Device device in USBHostController.GetDevices()) if (device.TYPE == type) n++; return n; }
public static int GetCount(USBH_DeviceType type) { int n = 0; foreach (USBH_Device device in USBHostController.GetDevices()) { if (device.TYPE == type) { n++; } } return(n); }