Add a mouse report descriptor that have wheel usages.

This commit is contained in:
László Monda
2016-03-02 00:28:15 +01:00
parent 28e61ee96c
commit c7a762ae67
4 changed files with 105 additions and 6 deletions

View File

@@ -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);