summaryrefslogtreecommitdiff
path: root/src/class/hid/hid.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-24 00:45:07 +0700
committerhathach <[email protected]>2018-07-24 00:45:07 +0700
commit3400dfdf4ea478894b2a96ac0bd27868c052fbeb (patch)
treedd125486da17644a8929da89fec079a47f3757af /src/class/hid/hid.h
parent546f2a1165555819bf3ef09fe1afcfbcbb084dd9 (diff)
nrf52840 boot mouse does not work, need more work
Diffstat (limited to 'src/class/hid/hid.h')
-rw-r--r--src/class/hid/hid.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/class/hid/hid.h b/src/class/hid/hid.h
index c898b09d4..9872172a9 100644
--- a/src/class/hid/hid.h
+++ b/src/class/hid/hid.h
@@ -167,14 +167,17 @@ typedef struct ATTR_PACKED
int8_t x; /**< Current delta x movement of the mouse. */
int8_t y; /**< Current delta y movement on the mouse. */
int8_t wheel; /**< Current delta wheel movement on the mouse. */
+// int8_t pan;
} hid_mouse_report_t;
/// Standard Mouse Buttons Bitmap
typedef enum
{
- MOUSE_BUTTON_LEFT = BIT_(0), ///< Left button
- MOUSE_BUTTON_RIGHT = BIT_(1), ///< Right button
- MOUSE_BUTTON_MIDDLE = BIT_(2) ///< Middle button
+ MOUSE_BUTTON_LEFT = BIT_(0), ///< Left button
+ MOUSE_BUTTON_RIGHT = BIT_(1), ///< Right button
+ MOUSE_BUTTON_MIDDLE = BIT_(2), ///< Middle button
+ MOUSE_BUTTON_BACKWARD = BIT_(3), ///< Backward button,
+ MOUSE_BUTTON_FORWARD = BIT_(4), ///< Forward button,
}hid_mouse_button_bm_t;
/// @}