/////////////////////////////////////////////////////////////////////////////
-// Name: hid.cpp
+// Name: src/mac/corefoundation/hid.cpp
// Purpose: DARWIN HID layer for WX Implementation
// Author: Ryan Norton
// Modified by:
//Now get the maching services
io_iterator_t pIterator;
wxIOCHECK(IOServiceGetMatchingServices(m_pPort, pDictionary, &pIterator), "No Matching HID Services");
- wxASSERT_MSG(pIterator != 0, wxT("No devices found!"));
+ if(pIterator == 0)
+ return false; // No devices found
//Now we iterate through them
io_object_t pObject;
return true;
}//end Create()
-int wxHIDDevice::GetCount (int nClass, int nType)
+size_t wxHIDDevice::GetCount (int nClass, int nType)
{
mach_port_t m_pPort;
//Now we iterate through them
io_object_t pObject;
- int nCount = 0;
+ size_t nCount = 0;
while ( (pObject = IOIteratorNext(pIterator)) != 0)
++nCount;