不知道 0x0A 0x38 0x02 怎么生成? 工具里确实有些生不出来。
x05, 0x01, // USAGE_PAGE (Generic Desktop)54BYTE 0x09, 0x02, // USAGE (Mouse) 0xA1, 0x01, // COLLECTION (Application) 0x85, 0x01, // report ID1 0x09, 0x01, // USAGE (Pointer) 0xA1, 0x00, // COLLECTION (Physical) 0x05, 0x09, // USAGE_PAGE (Button) 0x19, 0x01, // USAGE_MINIMUM (Button 1) 0x29, 0x05, // // USAGE_MAXIMUM (Button 3) 五个Button 0x15, 0x00, // LOGICAL_MINIMUM (0) 0x25, 0x01, // LOGICAL_MAXIMUM (1) 0x75, 0x01, // REPORT_COUNT (3) 0x95, 0x05, // REPORT_SIZE (1) 0x81, 0x02, // INPUT (Data,Var,Abs) 0x75, 0x03, // REPORT_COUNT (1) 0x95, 0x01, // REPORT_SIZE (5) 0x81, 0x01, //; // INPUT (Cnst,Var,Abs) 五个Button 0x05, 0x01, // USAGE_PAGE (Generic Desktop) 0x09, 0x30, // USAGE (X) 0x09, 0x31, // USAGE (Y) 0x09, 0x38, // USAGE (Wheel) 0x15, 0x81, // LOGICAL_MINIMUM (-127) 0x25, 0x7f, // LOGICAL_MAXIMUM (127) 0x75, 0x08, // REPORT_SIZE (8) 0x95, 0x03, // REPORT_COUNT (3) 0x81, 0x06, // INPUT (Data,Var,Rel) 0x05, 0x0C, // usage page (Cosumer) 54byte
0x0A, 0x38,0x02, //消费类 0x95, 0x01, // REPORT_COUNT (1) 0x81, 0x06, // INPUT (Data,Var,Rel) 0xC0, 0x05, 0x09, //usage page (Cosumer) 0x19, 0x09, //USAGE_MINIMUM (Button 9) 0x29, 0x0C, //USAGE_MAXIMUM (Button 12) 0x15, 0x00, //LOGICAL_MINIMUM (0) 0x25, 0x01, //LOGICAL_MAXIMUM (1) 0x95, 0x04, // REPORT_COUNT (4) 0x75, 0x01, //REPORT_SIZE (1) 0x81, 0x02, //INPUT (Data,Var,abs) 0x95, 0x01, // REPORT_COUNT (1) 0x75, 0x04, //REPORT_SIZE (4) 0x81, 0x03, //INPUT (cnst,Var,abs) 0xC0, //31byte
0x05, 0x0C, //; usage page (Cosumer) 0x09, 0x01, //; usage ID (consumer control) 0xA1, 0x01, //; collection (application) 0x85, 0x02, //; report ID "2" 0x19, 0x00, //; usage minimum (0) 0x2A, 0x3c,0x02, //; usage maximum (023c) 0x15, 0x00, //; logical minimum (0) 0x26, 0x3c,0x002, //; logical maximum (023c) 0x95, 0x01, //; report count (2) 0x81, 0x00, //; input (data, array) 0xC0, //; end collection 23byte |