cherry-embedded / CherryUSB

CherryUSB is a tiny, beautiful and portable USB host and device stack for embedded system with USB IP
https://cherryusb.readthedocs.io/
Apache License 2.0
1.21k stars 256 forks source link

change hid_mouse_report #231

Closed MaigoW closed 1 month ago

MaigoW commented 1 month ago

修改usb_hid.h中usb_hid_mouse_report结构体数据类型为int8_t,删除#ifdef CONFIG_INPUT_MOUSE_WHEEL条件,我在官网上看到的hid report例子,在使用cherryusb 开发时,鼠标报上来的数据原仓库中是uint8,范围为:0-256,在鼠标进行移动时,数据应有正负,表示前后或者上下,故应为int8_t类型,表示正负

sakumisu commented 1 month ago

鼠标是4个字节,wheels 保留。其次请在之前的pr上提交,不要重复提交新pr

MaigoW commented 1 month ago

好的

sakumisu commented 1 month ago

uint8_t wdisp; / Wheel displacement / 保留

MaigoW commented 1 month ago

之前那个pr重新open不了,这个pr 按照要求都改了,下次我避免重复提交新pr

sakumisu commented 1 month ago

好的,感谢pr,之前的是因为你的commit base变了,所以无法打开