You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add backwards compatibility for old consumer control format
Translate old 1-byte bitmap format to new 16-bit usage selector format
for Report ID 3 (Consumer Control). This allows old MouthPad firmware
to work with the updated HID descriptor.
Old format: 8 individual bit flags (1 byte)
New format: 16-bit usage code selector (2 bytes)
Mapping:
- bit 0 -> 0x00CD (Play/Pause)
- bit 1 -> 0x0183 (AL Consumer Control Config)
- bit 2 -> 0x00B5 (Scan Next Track)
- bit 3 -> 0x00B6 (Scan Previous Track)
- bit 4 -> 0x00EA (Volume Decrement)
- bit 5 -> 0x00E9 (Volume Increment)
- bit 6 -> 0x0225 (AC Forward)
- bit 7 -> 0x0224 (AC Back)
0 commit comments