These will appear in the Arduino Example menu when the Arduino Joystick Library is installed. The example Arduino sketch files listed below are included in this library.
The library should now appear in the Arduino IDE list of libraries.
On Microsoft Windows machines, only, this can be done by executing deploy.bat.
The library can also be downloaded directly using the following URL:Ĭopy the Joystick folder to the Arduino Libraries folder (typically located at %userprofile%\Documents\Arduino\libraries on Microsoft Windows machines). The latest build of Version 2.0 of the Arduino Joystick Library can be downloaded from the following GitHub repository: These features are configured using the Joystick_ class’s constructor. X, Y, and/or Z Axis Rotation (up to 16-bit precision).X, Y, and/or Z Axis (up to 16-bit precision).The joystick or gamepad can have the following features: This will not work with Arduino IDE 1.6.5 (or below) or with non-32u4 based Arduino devices (e.g. The Arduino Joystick Library Version 2.0 can be used with Arduino IDE 1.6.6 (or above) to add one or more joysticks (or gamepads) to the list of HID devices an Arduino Leonardo or Arduino Micro (or any Arduino clone that is based on the ATmega32u4) can support. This article discusses how the Arduino Leonardo and the Arduino Micro can also appear as one or more generic Game Controllers or Joysticks. Out of the box the Arduino Leonardo and the Arduino Micro appear to the host computer as a generic keyboard and mouse.