package org.usfirst.frc.team1002.robot;

import org.usfirst.frc.team1002.robot.commands.Fork;
import org.usfirst.frc.team1002.robot.commands.Lift;

import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.buttons.JoystickButton;

public class OI {
    JoystickButton upButton;
    JoystickButton downButton;
    JoystickButton gyroReset;
    JoystickButton cartesianToggle;
    JoystickButton forkIn;
    JoystickButton forkOut;

    public OI(GenericHID... joystick) {
	this.upButton = new JoystickButton(joystick[0], 5);
	this.downButton = new JoystickButton(joystick[0], 3);
	this.forkIn = new JoystickButton(joystick[0], 1);
	this.forkOut = new JoystickButton(joystick[0], 2);

	// Forklift
	this.upButton.whileHeld(new Lift(1));
	this.downButton.whileHeld(new Lift(-1));

	this.upButton.whenReleased(new Lift(0));
	this.downButton.whenReleased(new Lift(0));

	this.forkIn.whileHeld(new Fork(1));
	this.forkOut.whileHeld(new Fork(-0.666));

	this.forkIn.whenReleased(new Fork(0));
	this.forkOut.whenReleased(new Fork(0));
    }
}

@@ -337,53 +337,109 @@
 ton 
-gyroReset;%0A    JoystickButton cartesianToggle
+forkIn;%0A    JoystickButton forkOut;%0A    %0A    JoystickButton upButton2;%0A    JoystickButton downButton2
 ;%0A  
@@ -453,32 +453,33 @@
 ickButton forkIn
+2
 ;%0A    JoystickBu
@@ -490,16 +490,98 @@
  forkOut
+2;%0A    %0A    JoystickButton stopDriverTwo;%0A    %0A%09String shouldIStopDriverTwo = null
 ;%0A%0A    p
@@ -616,21 +616,17 @@
 ick) %7B%0A%09
-this.
+%09
 upButton
@@ -661,29 +661,25 @@
 ck%5B0%5D, 5);%0A%09
-this.
+%09
 downButton =
@@ -716,27 +716,71 @@
 %5D, 3);%0A%09
-this.
+%09forkIn = new JoystickButton(joystick%5B0%5D, 1);%0A%09%09
 fork
-In
+Out
  = new J
@@ -810,25 +810,232 @@
 0%5D, 
-1);%0A%09this.forkOut
+2);%0A%09%09%0A%09%09upButton2 = new JoystickButton(joystick%5B1%5D, 5);%0A%09%09downButton2 = new JoystickButton(joystick%5B1%5D, 3);%0A%09%09forkIn2 = new JoystickButton(joystick%5B1%5D, 1);%0A%09%09forkOut2 = new JoystickButton(joystick%5B1%5D, 2);%0A%09%09%0A%09%09stopDriverTwo
  = n
@@ -1069,32 +1069,118 @@
 0%5D, 
+1
 2);%0A
+%09
 %0A%09
-// Forklift%0A%09this.
+%09if (upButton.get() %7C%7C downButton.get() %7C%7C forkIn.get() %7C%7C forkOut.get() %7C%7C stopDriverTwo.get()) %7B%0A%09%09%09
 upBu
@@ -1205,29 +1205,26 @@
  Lift(1));%0A%09
-this.
+%09%09
 downButton.w
@@ -1251,108 +1251,427 @@
 ));%0A
+%09
 %0A%09
-this.upButton.whenReleased(new Lift(0));%0A%09this.downButton.whenReleased(new Lift(0));%0A%0A%09this.
+%09%09upButton.whenReleased(new Lift(0));%0A%09%09%09downButton.whenReleased(new Lift(0));%0A%09%0A%09%09%09forkIn.whileHeld(new Fork(1));%0A%09%09%09forkOut.whileHeld(new Fork(-0.666));%0A%09%0A%09%09%09forkIn.whenReleased(new Fork(0));%0A%09%09%09forkOut.whenReleased(new Fork(0));%0A%09%09%7D else %7B%0A%09%09%09upButton2.whileHeld(new Lift(1));%0A%09%09%09downButton2.whileHeld(new Lift(-1));%0A%09%0A%09%09%09upButton2.whenReleased(new Lift(0));%0A%09%09%09downButton2.whenReleased(new Lift(0));%0A%09%0A%09%09%09
 forkIn
+2
 .whi
@@ -1692,28 +1692,26 @@
 k(1));%0A%09
-this.
+%09%09
 forkOut
+2
 .whileHe
@@ -1736,21 +1736,20 @@
 ));%0A
+%09
 %0A%09
-this.
+%09%09
 forkIn
+2
 .whe
@@ -1777,20 +1777,18 @@
 );%0A%09
-this.
+%09%09
 forkOut
+2
 .whe
@@ -1811,16 +1811,20 @@
 rk(0));%0A
+%09%09%7D%0A
     %7D%0A%7D%0A

Update OI.java