Contents

ReportAvailable

Notifies the interface that an updated report is available from the HID device.

Declaration

virtual void ReportAvailable(uint64_t timestamp, uint32_t reportID, uint32_t reportLength, IOHIDReportType type, IOMemoryDescriptor *report, OSAction *action);

Parameters

  • timestamp:

    The timestamp of the report.

  • reportID:

    The unique ID associated with the report.

  • reportLength:

    The length of the report in bytes.

  • type:

    The report type.

  • report:

    A memory descriptor that contains the raw data for the report.

  • action:

    The OSAction object that handles the asynchronous report callback.

Discussion

Implement a custom version of this method in the OSAction object you use to open a session with the interface. Use the TYPE macro to let the system know that your method conforms to this prototype.

Don’t call this method directly. The system calls your custom method when a new report arrives.

See Also

Getting and Setting Input Reports