X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=211c3992323cac295dc95ad8f22faa573dc0e3f1;hb=cca025498432f408d14c6983c53f6d91371adf38;hp=997be71cdbe551afe2477d093f6172a28c1cfe26;hpb=38a404b33adc222b57179884470913cb4c0a011d;p=3501%2FroboRIO-code-base diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index 997be71..211c399 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -3,6 +3,7 @@ package org.usfirst.frc.team3501.robot; import edu.wpi.first.wpilibj.Joystick; public class OI { + private static OI oi; public static Joystick leftJoystick; public static Joystick rightJoystick; @@ -11,4 +12,10 @@ public class OI { rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT); } + + public static OI getOI(){ + if(oi == null) + oi = new OI(); + return oi; + } }