Contents

IOHIDDeviceCopyMatchingElements

Obtains HID elements that match the criteria contained in the matching dictionary.

Declaration

CFArrayRef IOHIDDeviceCopyMatchingElements(IOHIDDeviceRef device, CFDictionaryRef matching, IOOptionBits options);

Parameters

  • device:

    Reference to an IOHIDDevice.

  • matching:

    CFDictionaryRef containg element matching criteria.

  • options:

    Reserved for future use.

Return Value

Returns CFArrayRef containing multiple IOHIDElement object.

Discussion

Matching keys are prefixed by kIOHIDElement and declared in <IOKit/hid/IOHIDKeys.h>. Passing a NULL dictionary will result in all device elements being returned.

See Also

Miscellaneous