processReport
Parses the contents of the specified report and updates the interface’s elements.
Declaration
virtual void processReport(uint64_t timestamp, uint8_t *report, uint32_t reportLength, IOHIDReportType type, uint32_t reportID);Parameters
- timestamp:
The timestamp of the report.
- report:
A pointer to the bytes of the report.
- reportLength:
The number of bytes in the
reportparameter. - type:
The report type.
- reportID:
The unique ID associated with the report.
Discussion
This method uses the provided report data to update the IOHIDElement objects associated with this interface. Upon receiving a new report, call this method before you call the getElements method.