hidutils / hid-recorder

A utility to record HID data from /dev/hidraw devices
MIT License
1 stars 4 forks source link

Print a color marker based on the Report ID #20

Closed whot closed 3 months ago

whot commented 3 months ago

In the report summary and the input reports as read from the device print a color marker so it's easy to associate two reports to each other.

There's a static set of 7 colors and we simply modulo the report ID. That's good enough for most devices with a small set of report ID and using 7 means we get different colors for e.g. logitech devices that use report IDs of 16 and 32.