Set Button Value
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / OI.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
3import edu.wpi.first.wpilibj.Joystick;
4
5public class OI {
cca02549 6 private static OI oi;
38a404b3
KZ
7 public static Joystick leftJoystick;
8 public static Joystick rightJoystick;
83fa645c 9 public static Button toggleWinch;
38a404b3
KZ
10
11 public OI() {
12 leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
13 rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
83fa645c 14  toggleWinch = new JoystickButton(leftJoystick,Constants.OI.TOGGLE_WINCH_PORT);
38a404b3
KZ
15
16 }
cf086549
SG
17
18 public static OI getOI() {
19 if (oi == null)
20 oi = new OI();
21 return oi;
cca02549 22 }
38a404b3 23}