Change HID usage from Play On-Off Control (OOC) to Voice Command One-Shot Control (OSC).

OSC requires relative data.
This commit is contained in:
Michael Banther
2019-09-26 14:22:17 +01:00
parent 3c86da7c09
commit 9472bd7dce

View File

@@ -555,10 +555,10 @@ unsigned char hidReportDescriptor[] =
0xa1, 0x01, /* Collection (Application) */ 0xa1, 0x01, /* Collection (Application) */
0x15, 0x00, /* Logical Minimum (0) */ 0x15, 0x00, /* Logical Minimum (0) */
0x25, 0x01, /* Logical Maximum (1) */ 0x25, 0x01, /* Logical Maximum (1) */
0x09, 0xb0, /* Usage (Play) */ 0x09, 0xcf, /* Usage (Voice Command), use 0xcd for (Play/Pause OSC) */
0x75, 0x01, /* Report Size (1) */ 0x75, 0x01, /* Report Size (1) */
0x95, 0x01, /* Report Count (1) */ 0x95, 0x01, /* Report Count (1) */
0x81, 0x02, /* Input (Data, Var, Abs) */ 0x81, 0x06, /* Input (Data, Var, Rel) */
0x95, 0x07, /* Report Count (7) */ 0x95, 0x07, /* Report Count (7) */
0x81, 0x01, /* Input (Cnst, Ary, Abs) */ 0x81, 0x01, /* Input (Cnst, Ary, Abs) */
0xc0 /* End collection */ 0xc0 /* End collection */