 void loop() {
 
   // Read pin values
-  for (int i = 0; i < pinGamepadButtonPairs_SIZE; i+=2)
+  for (int i = 0; i < pinGamepadButtonPairs_SIZE; i += 2)
   {
     int pin = pinGamepadButtonPairs[i];
     int joystickButton = pinGamepadButtonPairs[i + 1];

// 
// *** Sketch to emulate a USB gamepad with the cocktail cabinet 
//     joysticks for use with the UCLA Game Lab switcher.
//
// *** Currently setup assuming a digital (not-analog) joystick


#include <Joystick.h>

Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID,JOYSTICK_TYPE_JOYSTICK,
  8, 0,                  // Button Count, Hat Switch Count
  true, true, true,     // X and Y, but no Z Axis
  false, false, false,   // No Rx, Ry, or Rz
  false, false,          // No rudder or throttle
  false, false, false);  // No accelerator, brake, or steering


  /*//pin values from keyboard version of sketch
  int upPin = 2;
  int downPin = 3;
  int leftPin = 4;
  int rightPin = 5;
  int buttonOnePin = 6;
  int buttonTwoPin = 7;
  int buttonThreePin = 8;
  int buttonFourPin = 9;
  int buttonFivePin = 10;
  int buttonSixPin = 11;
  int playerSelectBitOnePin = 12;
  int playerSelectBitTwoPin = 13;
  */
#define pinGamepadButtonPairs_SIZE 12
int pinGamepadButtonPairs[] =
{
  6, 3,
  7, 4,
