Add a PrintToStream() method to HIDParser that prints the resulting reports and
the root collection. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41922 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -492,6 +492,21 @@ HIDParser::SetReport(status_t status, uint8 *report, size_t length)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
HIDParser::PrintToStream()
|
||||
{
|
||||
for (uint8 i = 0; i < fReportCount; i++) {
|
||||
HIDReport *report = fReports[i];
|
||||
if (report == NULL)
|
||||
continue;
|
||||
|
||||
report->PrintToStream();
|
||||
}
|
||||
|
||||
fRootCollection->PrintToStream();
|
||||
}
|
||||
|
||||
|
||||
HIDReport *
|
||||
HIDParser::_FindOrCreateReport(uint8 type, uint8 id)
|
||||
{
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void SetReport(status_t status, uint8 *report,
|
||||
size_t length);
|
||||
|
||||
void PrintToStream();
|
||||
|
||||
private:
|
||||
HIDReport * _FindOrCreateReport(uint8 type, uint8 id);
|
||||
float _CalculateResolution(global_item_state *state);
|
||||
|
||||
Reference in New Issue
Block a user