Add optional support for 32 gamepad buttons

This commit is contained in:
Marcelo Bezerra
2021-06-07 19:04:21 +02:00
committed by hathach
parent 1b8473902f
commit d5f8da44d1
3 changed files with 48 additions and 7 deletions
+6
View File
@@ -316,6 +316,12 @@
#error Control Endpoint Max Packet Size cannot be larger than 64
#endif
#ifndef TUD_OPT_GAMEPAD_32_BUTTONS
#define CFG_TUSB_MAX_BUTTONS 16
#else
#define CFG_TUSB_MAX_BUTTONS 32
#endif
#endif /* _TUSB_OPTION_H_ */
/** @} */