Hello users and writers.
I've encountered this issue when trying to connect Logitech G300 mouse. I had no wheel data in the structure. It appeared because the size of the MouseReport structure was declated to be 6 instead of 7 and the wheel data was not included there.
The correct code is this (bold is what needs to be added)
if (ParserData->LargestReportSizeBits < NewReportItem.BitOffset + NewReportItem.Attributes.BitSize)
ParserData->LargestReportSizeBits = NewReportItem.BitOffset + NewReportItem.Attributes.BitSize;