diff options
| author | tobozo <[email protected]> | 2022-03-02 15:00:07 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-02 15:00:07 +0100 |
| commit | 34ae21319e2e5c34d1e210e36231f695581ae05a (patch) | |
| tree | 2cd382f3e89b6235de8e0763c2372242cc77722d /src | |
| parent | 7c627f58d785334cc701e0c4b3160e7fd573f88e (diff) | |
added Absolute Mouse report struct
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/hid/hid.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/class/hid/hid.h b/src/class/hid/hid.h index 940454bd9..667ee79aa 100644 --- a/src/class/hid/hid.h +++ b/src/class/hid/hid.h @@ -300,6 +300,20 @@ typedef struct TU_ATTR_PACKED int8_t pan; // using AC Pan } 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 typedef enum { |
