Joystick HID API for Arduino.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anna 9234060532 Add comments to example code. 5 years ago
examples Add comments to example code. 5 years ago
Joystick.cpp Trim out a ton of debugging statements that are too verbose to be useful now. 5 years ago
Joystick.h Fix a bunch of embarrassing typos and syntax errors. That'll teach me to commit code I haven't compiled... 5 years ago Clean up readme a bit more. 5 years ago

Arduino Joystick library

This is a library that builds and sends USB HID Joystick reports, making it easy to build USB Joysticks with Arduino.



  1. Put the arduino-joystick directory into your Arduino libraries directory.
  2. Make sure Bounce2 is installed!


  1. In your arduino sketch, add the includes: #include <Bounce2.h> #include <Joystick.h>
  2. Create a Joystick object: Joystick joystick;
  3. Add buttons and axes in setup() with Joystick::AddButton(), and call Joystick::Update() in loop(). That's it!