Skip to content

Instantly share code, notes, and snippets.

View mxgordon's full-sized avatar

Max Gordon mxgordon

View GitHub Profile
#include <Joystick.h>
Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID,JOYSTICK_TYPE_GAMEPAD, //Set up for joystick
1, 0, // button counter values
true, true, false, // axes (x,y,z)
false, false, false, // no Rx, Ry, or Rz (rotation around respective axis)
false, false, // no rudder or throttle
false, false, false); // no accelerator, brake, or steering
void setup() {