gamelaster / ArduinoGamepad

A GamePad HID library for Arduino Pro Micro/Leonardo (ATMega32u4)
87 stars 21 forks source link

More than 16 buttons #1

Closed legomolina closed 7 years ago

legomolina commented 7 years ago

Hi, is possible to add more than 16 buttons?

gamelaster commented 7 years ago

Hello, sure, it's possible, you just need to edit those lines to get more buttons: https://github.com/gamelaster/ArduinoGamepad/blob/master/Gamepad.cpp#L37

legomolina commented 7 years ago

So, can I put: 0x29, 0x20, // USAGE_MAXIMUM (Button 32) ?

gamelaster commented 7 years ago

Yes 😊