Creates methods for setting speed, adding to speed, and subtracting from speed along...
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / OI.java
index 997be71cdbe551afe2477d093f6172a28c1cfe26..0bf9e3a4db2b4d82807d79441f9f4c1d469336a0 100644 (file)
@@ -1,14 +1,27 @@
 package org.usfirst.frc.team3501.robot;
 
 import edu.wpi.first.wpilibj.Joystick;
+import edu.wpi.first.wpilibj.buttons.Button;
+import edu.wpi.first.wpilibj.buttons.JoystickButton;
 
 public class OI {
   public static Joystick leftJoystick;
   public static Joystick rightJoystick;
+  public static Button leftSilverButton;
+  public static Button rightSilverButton;
 
   public OI() {
     leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
     rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
 
+    leftSilverButton = new JoystickButton(rightJoystick,
+        Constants.OI.RIGHT_STICK_LEFT_SILVER_BUTTON);
+    ;
+
+    rightSilverButton = new JoystickButton(rightJoystick,
+        Constants.OI.RIGHT_STICK_RIGHT_SILVER_BUTTON);
+    ;
+
   }
+
 }