Hi,
I copied sample code directly from "Working With HID Class Device
Interfaces". It did not work.
hidMatchDictionary = IOServiceMatching(kIOHIDDeviceKey);
// produced a matching dictionary
ioReturnValue = IOServiceGetMatchingServices(masterPort,
hidMatchDictionary, hidObjectIterator);
// returned empty iterator (with no error).
Then I replaced kIOHIDDeviceKey with kIOUSBDeviceClassName and did
get an iterator with the new matching dictionary.
My mac has an Apple Keyboard and Apple Mouse. Are they both not HID
devices in OS X?
Should I not have obtained an iterator with 2 items in the first
case? Is there a problem with IOServiceGetMatchingServices()?
Any Ideas?
anthony
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.