Joystick HID API for Arduino.
Go to file
2015-11-13 01:21:49 -05:00
examples Add Bounce2 header to examples. Due to an annoying quirk with Arduino, we only include library headers directly referenced by the sketch, so dependencies have to be listed explicitly. 2015-11-13 00:53:06 -05:00
Joystick.cpp Reference the correct object, not a copy of it. 2015-11-13 01:21:49 -05:00
Joystick.h Fix a bunch of embarrassing typos and syntax errors. That'll teach me to commit code I haven't compiled... 2015-11-13 00:50:16 -05:00
Readme.md Clean up readme a bit more. 2015-11-13 00:58:24 -05:00

Arduino Joystick library

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

Dependencies

Installation

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

Usage

  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!