package org.usfirst.frc.team6027.robot;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import org.usfirst.frc.team6027.robot.commands.DriveDistance;

public class OI {
	private Joystick stick = new Joystick(0);
	private JoystickButton trigger = new JoystickButton(stick,7);

	public OI(){
		trigger.whileHeld(new DriveDistance(10));
	}

	public Joystick getJoystick(){
		return stick;
	}
}

@@ -187,16 +187,81 @@
 istance;
+%0Aimport org.usfirst.frc.team6027.robot.commands.RotateDriveTrain;
 %0A%0Apublic
@@ -339,23 +339,87 @@
 kButton 
-trigger
+forward = new JoystickButton(stick,7);%0A%09private JoystickButton backward
  = new J
@@ -438,17 +438,17 @@
 n(stick,
-7
+8
 );%0A%0A%09pub
@@ -463,24 +463,26 @@
 %7B%0A%09%09
-trigger.whileHel
+forward.whenPresse
 d(ne
@@ -501,9 +501,60 @@
 nce(
-1
+40));%0A%09%09backward.whenPressed(new RotateDriveTrain(18
 0));

Update buttons