Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
3 | import edu.wpi.first.wpilibj.Joystick; | |
4 | ||
5 | public class OI { | |
cca02549 | 6 | private static OI oi; |
38a404b3 KZ |
7 | public static Joystick leftJoystick; |
8 | public static Joystick rightJoystick; | |
9 | ||
10 | public OI() { | |
11 | leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); | |
12 | rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT); | |
13 | ||
14 | } | |
cca02549 CZ |
15 | |
16 | public static OI getOI(){ | |
17 | if(oi == null) | |
18 | oi = new OI(); | |
19 | return oi; | |
20 | } | |
38a404b3 | 21 | } |