通常的USB鼠标数据格式如下,
第一BYTE表示鼠标左键,右键,中键的单击,第4BYTE 表示滑轮滚动,中间2BYTE代表x,y的值,
但是发现有些USB鼠标却是:第一BYTE表示鼠标左键,右键,中键的单击,第5 BYTE 表示滑轮滚动,
中间有3BYTE数据,我的问题是这3byte数据是怎么来表示X,y的,还有报告描述符要怎么写,谢谢。
如下是后者的数据
Bus Hound 6.01 capture on Windows Vista Service Pack 1 (x64). Complements of www.perisoft.net
dell
Device - Device ID (followed by the endpoint for USB devices)
(18) USB 输入设备
(21) HID-compliant mouse
Phase - Phase Type
IN Data in transfer
Data - Hex dump of the data transferred
Descr - Description of the phase
Cmd... - Position in the captured data
Device Phase Data Description Cmd.Phase.Ofs(rep)
------ ----- -------------------------------------------------- ---------------- ------------------
18.1 IN 00 fb 0f 00 00 00 ...... 1.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 2.1.0
18.1 IN 00 f4 ef ff 00 00 ...... 3.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 4.1.0
18.1 IN 00 ed ff ff 00 00 ...... 5.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 6.1.0(2)
18.1 IN 00 e7 0f 00 00 00 ...... 7.1.0(2)
21 IN 03 00 00 00 00 00 00 00 ........ 10.1.0
18.1 IN 00 e7 1f 00 00 00 ...... 11.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 12.1.0
18.1 IN 00 e9 2f 00 00 00 ../... 13.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 14.1.0
18.1 IN 00 eb 1f 00 00 00 ...... 15.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 16.1.0
18.1 IN 00 ee 2f 00 00 00 ../... 17.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 18.1.0
18.1 IN 00 f2 2f 00 00 00 ../... 19.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 20.1.0
18.1 IN 00 f5 3f 00 00 00 ..?... 21.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 22.1.0
18.1 IN 00 06 e0 ff 00 00 ...... 23.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 24.1.0
18.1 IN 00 15 60 ff 00 00 ..`... 25.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 26.1.0
18.1 IN 00 28 80 ff 00 00 .(.... 27.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 28.1.0
18.1 IN 00 33 d0 ff 00 00 .3.... 29.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 30.1.0
18.1 IN 00 35 50 00 00 00 .5P... 31.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 32.1.0
18.1 IN 00 2b a0 00 00 00 .+.... 33.1.0
21 IN 03 00 00 00 00 00 00 00 ........ 34.1.0
|