Arduino Joystick Library Version 2.0 can be used with Arduino IDE 1.6.6 (or above) to add one or more ... the ATmega32u4) can support. This will not work with Arduino IDE 1.6.5 (or below) or with non-32u4 based Arduino devices (e.g. Arduino UNO, Arduino MEGA,... res:
* Buttons (default: 32)
* Up to 2 Hat Switches
* X, Y, and/or Z Axis (up to 16-bit precisi