usb-tools / python-hid-parser

Typed pure Python library to parse HID report descriptors
MIT License
40 stars 18 forks source link

hid_parser: parse unaligned fields correctly #21

Open tlyu opened 11 months ago

tlyu commented 11 months ago

The previous _data_bit_shift() appeared to assume a MSB-first bit ordering in report fields, contrary to the LSB-first ordering required by the HID specification.