IOHIDManager.h

Overview

IOHIDManager defines an Human Interface Device (HID) managment object. It provides global interaction with managed HID devices such as discovery/removal and receiving input events. IOHIDManager is also a CFType object and as such conforms to all the conventions expected such object.

This documentation assumes that you have a basic understanding of the material contained in Accessing Hardware From Applications For definitions of I/O Kit terms used in this documentation, such as matching dictionary, family, and driver, see the overview of I/O Kit terms and concepts n the "Device Access and the I/O Kit" chapter of Accessing Hardware From Applications.

This documentation also assumes you have read Human Interface Device & Force Feedback. Please review documentation before using this reference.

All of the information described in this document is contained in the header file IOHIDManager.h found at /System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDManager.h.

Included Headers

  • <IOKit/IOTypes.h>

  • <IOKit/IOReturn.h>

  • <IOKit/hid/IOHIDLib.h>

  • <CoreFoundation/CoreFoundation.h>

Topics

Miscellaneous

IOHIDManagerClose

Closes the IOHIDManager.

IOHIDManagerCopyDevices

Obtains currently enumerated devices.

IOHIDManagerCreate

Creates an IOHIDManager object.

IOHIDManagerGetProperty

Obtains a property of an IOHIDManager.

IOHIDManagerGetTypeID

Returns the type identifier of all IOHIDManager instances.

IOHIDManagerOpen

Opens the IOHIDManager.

IOHIDManagerRegisterDeviceMatchingCallback

Registers a callback to be used a device is enumerated.

IOHIDManagerRegisterDeviceRemovalCallback

Registers a callback to be used when any enumerated device is removed.

IOHIDManagerRegisterInputReportCallback

Registers a callback to be used when an input report is issued by any enumerated device.

IOHIDManagerRegisterInputValueCallback

Registers a callback to be used when an input value is issued by any enumerated device.

IOHIDManagerSaveToPropertyDomain

Used to write out the current properties to a specific domain.

IOHIDManagerScheduleWithRunLoop

Schedules HID manager with run loop.

IOHIDManagerSetDeviceMatching

Sets matching criteria for device enumeration.

IOHIDManagerSetDeviceMatchingMultiple

Sets multiple matching criteria for device enumeration.

IOHIDManagerSetInputValueMatching

Sets matching criteria for input values received via IOHIDManagerRegisterInputValueCallback.

IOHIDManagerSetInputValueMatchingMultiple

Sets multiple matching criteria for input values received via IOHIDManagerRegisterInputValueCallback.

IOHIDManagerSetProperty

Sets a property for an IOHIDManager.

IOHIDManagerUnscheduleFromRunLoop

Unschedules HID manager with run loop.

Data Types

See the Overview for header-level documentation.

IOHIDManagerOptions

Various options that can be supplied to IOHIDManager functions.

IOHIDManagerRef

This is the type of a reference to the IOHIDManager.