Mailing Lists: Apple Mailing Lists

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

HID LocationIDs & composite devices -> unique ID?



Hi everyone! This is my first post to this list :)

I've been working with HID Manager (directly; i.e. not using HID Utilities) for the past few weeks, and everything was working perfectly - until yesterday. I discovered the composite devices (such as the Apple Extended Keyboard on my brother's iMac) show up as 2 separate io_object_t instances WITH THE SAME LOCATION ID. This is a problem for me because my system was based on the assumption that LocationIDs are a unique way of identifying a device. Obviously, I was mistaken.

What is the best way to uniquely identify a human interface device? I'm guessing I should combine the LocationID with some other piece of information. I hear that not all devices provide serial numbers, so what else can I use? Is there a standard way to do this?

I liked the idea of being able to use LocationIDs because I could store the LocationID of the user's preferred device in their preferences.

Any ideas?


Thanks in advance :)

Andrew

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to 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.