Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Working With HID Class Device Interfaces

This chapter provides step-by-step instructions, including listings of sample code, for accessing a HID class device on Mac OS X. These examples assume that you have already obtained an iterator for a list of devices matching certain properties (for example, by using the MyFindHIDDevices function, Listing 2-3).

Now that you have a device iterator, you can use it to examine each device and create a device interface for it. The functions in this chapter demonstrate this process by first displaying the properties and then creating and testing a device interface for each device in turn.

This chapter contains the following sections:

  1. “Printing the Properties of a HID Class Device”

  2. “Creating a HID Class Device Interface”

  3. “Obtaining HID Cookies”

  4. “Performing Operations on a HID Class Device”

  5. “Using Queue Callbacks”

For code to help you locate HID class devices, see “HID Access Overview.”



< Previous PageNext Page > Hide TOC


Last updated: 2006-10-03




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice