Arduino Joystick library
This is a library that builds and sends USB HID Joystick reports, making it easy to build USB Joysticks with Arduino.
- Put the arduino-joystick directory into your Arduino libraries directory.
- Make sure Bounce2 is installed!
- In your arduino sketch, add the includes:
- Create a Joystick object:
- Add buttons and axes in setup() with Joystick::AddButton(), and call Joystick::Update() in loop(). That's it!