Skip to content

Commit 64eaf2d

Browse files
committed
Report the unused button bit in one time
1 parent 34fbe90 commit 64eaf2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debug/usb/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ qemu代码里描述上述鼠标按键的结构时HIDPointerEvent
180180
0x95, 0x03, /* Report Count (3) */
181181
0x75, 0x01, /* Report Size (1) */
182182
0x81, 0x02, /* Input (Data, Variable, Absolute) */
183-
0x95, 0x01, /* Report Count (1) */
184-
0x75, 0x05, /* Report Size (5) */
183+
0x95, 0x01, /* Report Count (1) 未配置button的位也需要上报 */
184+
0x75, 0x05, /* Report Size (5) 一次性将剩余的5bit都上报 */
185185
0x81, 0x01, /* Input (Constant) */
186186
0x05, 0x01, /* Usage Page (Generic Desktop) */
187187
0x09, 0x30, /* Usage (X) */

0 commit comments

Comments
 (0)