7#ifndef _HID_REPORT_MOUSE_H_
8#define _HID_REPORT_MOUSE_H_
20#define REPORT_SIZE_MOUSE 5
27#define REPORT_SIZE_MOUSE_BOOT 3
30#define REPORT_MASK_MOUSE {0x01}
33#define USAGE_PAGE_MOUSE_XY 0x01
34#define USAGE_PAGE_MOUSE_WHEEL 0x01
35#define USAGE_PAGE_KEYBOARD 0x07
36#define USAGE_PAGE_LEDS 0x08
37#define USAGE_PAGE_MOUSE_BUTTONS 0x09
39#define MOUSE_REPORT_WHEEL_MIN (-0x7F)
40#define MOUSE_REPORT_WHEEL_MAX (0x7F)
41#define MOUSE_REPORT_XY_MIN (-0x07ff)
42#define MOUSE_REPORT_XY_MAX (0x07ff)
43#define MOUSE_REPORT_XY_MIN_BOOT (-0x80)
44#define MOUSE_REPORT_XY_MAX_BOOT (0x7f)
45#define MOUSE_REPORT_BUTTON_COUNT_MAX 8
55#define REPORT_MAP_MOUSE(report_id) \
63 0x05, USAGE_PAGE_MOUSE_BUTTONS, \
69 0x95, MOUSE_REPORT_BUTTON_COUNT_MAX, \
72 0x05, USAGE_PAGE_MOUSE_WHEEL, \
80 0x05, USAGE_PAGE_MOUSE_XY, \
@ MOUSE_REPORT_AXIS_X
Definition hid_report_mouse.h:48
@ MOUSE_REPORT_AXIS_COUNT
Definition hid_report_mouse.h:51
@ MOUSE_REPORT_AXIS_Y
Definition hid_report_mouse.h:49
@ MOUSE_REPORT_AXIS_WHEEL
Definition hid_report_mouse.h:50