-// 
-// *** Sketch to emulate a USB gamepad with the cocktail cabinet 
+//
+// *** 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


void setup() {
  // Initialize Button Pins
  for (int i = 0; i < pinGamepadButtonPairs_SIZE; i+=2)
  {
    int pin = pinGamepadButtonPairs[i];
    pinMode(pin, INPUT_PULLUP);
  }

    for (int i = 0; i < pinJoystickDirectionPins_SIZE; i++)
  {
    int pin = pinJoystickDirectionPins[i];
    pinMode(pin, INPUT_PULLUP);



  pinMode(A0, INPUT_PULLUP);

  // Initialize Joystick Library
  Joystick.begin();
  Joystick.setXAxisRange(-1, 1);
  Joystick.setYAxisRange(-1, 1);
  Joystick.setButton(6,0); //set button 7 off
}


