summaryrefslogtreecommitdiff
path: root/tinyusb/class
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/class')
-rw-r--r--tinyusb/class/hid.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h
index 1d423a53e..2bd98ac5d 100644
--- a/tinyusb/class/hid.h
+++ b/tinyusb/class/hid.h
@@ -112,18 +112,16 @@ typedef ATTR_PACKED_STRUCT(struct)
/**
* \brief buttons codes for HID mouse
*/
-enum
-{
- HID_MOUSEBUTTON_RIGHT = 0,
- HID_MOUSEBUTTON_LEFT = 1,
- HID_MOUSEBUTTON_MIDDLE = 2
+enum {
+ HID_MOUSEBUTTON_LEFT = BIT_(0),
+ HID_MOUSEBUTTON_RIGHT = BIT_(1),
+ HID_MOUSEBUTTON_MIDDLE = BIT_(2)
};
/**
* \brief KB modifier codes for HID KB
*/
-enum
-{
+enum {
KEYBOARD_MODIFIER_LEFTCTRL = BIT_(0),
KEYBOARD_MODIFIER_LEFTSHIFT = BIT_(1),
KEYBOARD_MODIFIER_LEFTALT = BIT_(2),