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

            return n;
        }
Beispiel #2
0
        public static int GetCount(USBH_DeviceType type)
        {
            int n = 0;

            foreach (USBH_Device device in USBHostController.GetDevices())
            {
                if (device.TYPE == type)
                {
                    n++;
                }
            }

            return(n);
        }