summaryrefslogtreecommitdiff
path: root/src/class/hid/hid_device.h
diff options
context:
space:
mode:
authorMarcelo Bezerra <[email protected]>2021-06-08 09:24:50 +0200
committerhathach <[email protected]>2021-06-09 10:33:57 +0700
commite12195705c2b849379145618691c2e8564762aa7 (patch)
tree9ec81209ac73f010a780845fc27f9783dc94b5c7 /src/class/hid/hid_device.h
parentf37c8ed749a7bdc264de132f8d81dec47a7972f6 (diff)
Pull request changes
Remove configuration options and just bump number of buttons to 32 Fix button numbereing and comments in
Diffstat (limited to 'src/class/hid/hid_device.h')
-rw-r--r--src/class/hid/hid_device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/hid/hid_device.h b/src/class/hid/hid_device.h
index 39ec6be76..543bc3b3b 100644
--- a/src/class/hid/hid_device.h
+++ b/src/class/hid/hid_device.h
@@ -343,10 +343,10 @@ static inline bool tud_hid_gamepad_report(uint8_t report_id, int8_t x, int8_t y
/* 16 bit Button Map */ \
HID_USAGE_PAGE ( HID_USAGE_PAGE_BUTTON ) ,\
HID_USAGE_MIN ( 1 ) ,\
- HID_USAGE_MAX ( CFG_TUD_MAX_BUTTONS ) ,\
+ HID_USAGE_MAX ( 32 ) ,\
HID_LOGICAL_MIN ( 0 ) ,\
HID_LOGICAL_MAX ( 1 ) ,\
- HID_REPORT_COUNT ( CFG_TUD_MAX_BUTTONS ) ,\
+ HID_REPORT_COUNT ( 32 ) ,\
HID_REPORT_SIZE ( 1 ) ,\
HID_INPUT ( HID_DATA | HID_VARIABLE | HID_ABSOLUTE ) ,\
HID_COLLECTION_END \