Contents

IOHIDDeviceRegisterInputReportCallback

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

Declaration

void IOHIDDeviceRegisterInputReportCallback(IOHIDDeviceRef device, uint8_t *report, CFIndex reportLength, IOHIDReportCallback callback, void *context);

Parameters

  • device:

    Reference to an IOHIDDevice.

  • report:

    Pointer to preallocated buffer in which to copy inbound report data.

  • reportLength:

    Length of preallocated buffer.

  • callback:

    Pointer to a callback method of type IOHIDReportCallback.

  • context:

    Pointer to data to be passed to the callback.

Discussion

An input report is an interrupt driver report issued by the device.

See Also

Miscellaneous