|
|
@ -67,7 +67,7 @@ var DescriptorCDCHID = Descriptor{ |
|
|
|
0x07, 0x05, 0x02, 0x02, 0x40, 0x00, 0x00, |
|
|
|
0x07, 0x05, 0x83, 0x02, 0x40, 0x00, 0x00, |
|
|
|
0x09, 0x04, 0x02, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, |
|
|
|
0x09, 0x21, 0x01, 0x01, 0x00, 0x01, 0x22, 0x65, 0x00, |
|
|
|
0x09, 0x21, 0x01, 0x01, 0x00, 0x01, 0x22, 0x7E, 0x00, |
|
|
|
0x07, 0x05, 0x84, 0x03, 0x40, 0x00, 0x01, |
|
|
|
}, |
|
|
|
HID: map[uint16][]byte{ |
|
|
@ -80,6 +80,19 @@ var DescriptorCDCHID = Descriptor{ |
|
|
|
0x03, 0x15, 0x00, 0x25, 0x01, 0x95, 0x03, 0x75, 0x01, 0x81, 0x02, 0x95, 0x01, 0x75, 0x05, 0x81, |
|
|
|
0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31, 0x09, 0x38, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, |
|
|
|
0x03, 0x81, 0x06, 0xc0, 0xc0, |
|
|
|
|
|
|
|
0x05, 0x0C, // Usage Page (Consumer)
|
|
|
|
0x09, 0x01, // Usage (Consumer Control)
|
|
|
|
0xA1, 0x01, // Collection (Application)
|
|
|
|
0x85, 0x03, // Report ID (3)
|
|
|
|
0x15, 0x00, // Logical Minimum (0)
|
|
|
|
0x26, 0xFF, 0x1F, // Logical Maximum (8191)
|
|
|
|
0x19, 0x00, // Usage Minimum (Unassigned)
|
|
|
|
0x2A, 0xFF, 0x1F, // Usage Maximum (0x1FFF)
|
|
|
|
0x75, 0x10, // Report Size (16)
|
|
|
|
0x95, 0x01, // Report Count (1)
|
|
|
|
0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
|
|
|
|
0xC0, // End Collection
|
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|