Add a mouse report descriptor that have wheel usages.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
// Macros:
|
||||
|
||||
#define USB_MOUSE_REPORT_LENGTH (0x04U)
|
||||
#define USB_MOUSE_REPORT_LENGTH (0x07U)
|
||||
|
||||
// Typedefs:
|
||||
|
||||
@@ -12,6 +12,14 @@
|
||||
uint8_t idleRate;
|
||||
} usb_device_hid_mouse_struct_t;
|
||||
|
||||
typedef struct usb_device_wheeled_mouse_struct {
|
||||
uint8_t button;
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
int8_t verticalWheelMovement;
|
||||
int8_t horizontalWheelMovement;
|
||||
} usb_device_wheeled_mouse_struct_t;
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
|
||||
Reference in New Issue
Block a user