把报告描述符改为:
0x05, /*Usage Page(Generic Desktop)*/
0x01,
0x09, /*Usage(Mouse)*/
0x02,
0xA1, /*Collection(Logical)*/
0x01,
0x09, /*Usage(Pointer)*/
0x01,
/* 8 */
0xA1, /*Collection(Linked)*/
0x00,
0x05, /*Usage Page(Buttons)*/
0x09,
0x19, /*Usage Minimum(1)*/
0x01,
0x29, /*Usage Maximum(3)*/
0x03,
/* 16 */
0x15, /*Logical Minimum(0)*/
0x00,
0x25, /*Logical Maximum(1)*/
0x01,
0x95, /*Report Count(3)*/
0x03,
0x75, /*Report Size(1)*/
0x01,
/* 24 */
0x81, /*Input(Variable)*/
0x02,
0x95, /*Report Count(5)*/
0x05,
0x75, /*Report Size(1)*/
0x01,
0x81, /*Input(Constant,Array)*/
0x03,
/* 32 */
0x05, /*Usage Page(Generic Desktop)*/
0x01,
0x09, /*Usage(X axis)*/
0x30,
0x15, 0x00, //Logical Minimum (0)
0x26, 0xff,0x0f, //Logical Maximum (4095)
0x35, 0x00, //PHYSICAL_MINIMUM (0)
0x46, 0xff,0x0f, //HYSICAL_MAXIMUM (4095)
0x75, //Report Size(16)
0x10,
0x95, //Report Count(1)*/
0x01,
0x81, //Input(Variable, Relative)*/
0x02,
0x09, //Usage(Y axis)
0x31,
0x15, 0x00, //Logical Minimum (0)
0x26, 0xff,0x0f, //Logical Maximum (4095)
0x35, 0x00, //PHYSICAL_MINIMUM (0)
0x46, 0xff,0x0f, //PHYSICAL_MAXIMUM (4095)
0x75, /*Report Size(16)*/
0x10,
0x95, /*Report Count(3)*/
0x01,
0x81, /*Input(Variable, Relative)*/
0x02,
0xc0,
0xc0
系统可以认出鼠标,但是左右键、发坐标都没有反应,还需要改什么地方吗?希望有研究过的能指点一下! |
|