summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangzongqiang <[email protected]>2024-08-05 15:01:36 +0800
committersakumisu <[email protected]>2024-08-05 16:05:40 +0800
commit8451bc64bbac15bb51116cfdf364607c5a48e3ec (patch)
tree14fb3daa87e76991b1be1b99cc74343e9a3de9f3
parent3fc30cd058650e3845870a464218ab524bd9e86b (diff)
change hid_mouse_report
-rw-r--r--class/hid/usb_hid.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/class/hid/usb_hid.h b/class/hid/usb_hid.h
index 5a88a34b..64c15992 100644
--- a/class/hid/usb_hid.h
+++ b/class/hid/usb_hid.h
@@ -565,19 +565,17 @@ struct usb_hid_kbd_report
struct usb_hid_mouse_report
{
uint8_t buttons; /* See HID_MOUSE_INPUT_BUTTON_* definitions */
- uint8_t xdisp; /* X displacement */
- uint8_t ydisp; /* y displacement */
+ int8_t xdisp; /* X displacement */
+ int8_t ydisp; /* y displacement */
/* Device specific additional bytes may follow */
-#ifdef CONFIG_INPUT_MOUSE_WHEEL
uint8_t wdisp; /* Wheel displacement */
-#endif
};
/* Joystick input report (1 bytes) (HID D.1) */
struct usb_hid_js_report
{
- uint8_t xpos; /* X position */
- uint8_t ypos; /* X position */
+ int8_t xpos; /* X position */
+ int8_t ypos; /* X position */
uint8_t buttons; /* See USBHID_JSIN_* definitions */
uint8_t throttle; /* Throttle */
};