Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOServiceGetMatchingServices() returning empty iterator



Currently the Keyboard & Mouse are supported using protocol-specific drivers. That will soon be changing so that the generic HID driver will be used for all HID devices, including boot-protocol keyboards and mice.

HID devices that would work with that code include Game Controllers, USB Monitors, and USB connected UPS systems.

David Ferguson
USB Software Team
Apple Computer, Inc.



At 2:13 PM -0500 3/27/02, Anthony Melidy wrote:
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.


--
_______________________________________________
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.

References: 
 >IOServiceGetMatchingServices() returning empty iterator (From: Anthony Melidy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.