Contents

IOHIDInterface

A provider object for a HID device’s interface.

Declaration

class IOHIDInterface;

Overview

An IOHIDInterface object represents a specific interface of the HID device. Typically, you don’t create IOHIDInterface objects directly. Instead, you specify that your driver relies on an IOHIDInterface as its provider, and the system creates the interface object for you during the matching process.

To use a HID interface object directly, call Open to create a new session between the interface and your custom driver. When calling that method, you specify an OSAction object to execute each time a new report is ready to process. When a new report arrives, the IOHIDInterface object parses the device’s report data, puts the data into a set of IOHIDElement objects, and notifies your action object. Use your action object’s ReportAvailable method to parse the element objects and dispatch events.

Topics

Running the Interface

Managing the Session

Getting and Setting Input Reports

Accessing the Elements of a Report

See Also

Providers