Skip to content

LargestReportSizeBits is counted wrong in USB_ProcessHIDReport. Mouse wheel data is missing #190

@ugolevant

Description

@ugolevant

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions