added Absolute Mouse report struct
This commit is contained in:
@@ -300,6 +300,20 @@ typedef struct TU_ATTR_PACKED
|
|||||||
int8_t pan; // using AC Pan
|
int8_t pan; // using AC Pan
|
||||||
} hid_mouse_report_t;
|
} hid_mouse_report_t;
|
||||||
|
|
||||||
|
|
||||||
|
// Absolute Mouse: same as the Standard (relative) Mouse Report but
|
||||||
|
// with int16_t instead of int8_t for X and Y coordinates.
|
||||||
|
typedef struct TU_ATTR_PACKED
|
||||||
|
{
|
||||||
|
uint8_t buttons; /**< buttons mask for currently pressed buttons in the mouse. */
|
||||||
|
int16_t x; /**< Current x position of the mouse. */
|
||||||
|
int16_t y; /**< Current y position of the mouse. */
|
||||||
|
int8_t wheel; /**< Current delta wheel movement on the mouse. */
|
||||||
|
int8_t pan; // using AC Pan
|
||||||
|
} abs_mouse_report_t;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// Standard Mouse Buttons Bitmap
|
/// Standard Mouse Buttons Bitmap
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user