Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
3 | import edu.wpi.first.wpilibj.Joystick; | |
cb3389eb E |
4 | import edu.wpi.first.wpilibj.buttons.Button; |
5 | import edu.wpi.first.wpilibj.buttons.JoystickButton; | |
38a404b3 KZ |
6 | |
7 | public class OI { | |
8 | public static Joystick leftJoystick; | |
9 | public static Joystick rightJoystick; | |
cb3389eb E |
10 | public static Button leftSilverButton; |
11 | public static Button rightSilverButton; | |
7a949394 | 12 | public static Button thumbButton; |
38a404b3 KZ |
13 | |
14 | public OI() { | |
15 | leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); | |
16 | rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT); | |
17 | ||
cb3389eb E |
18 | leftSilverButton = new JoystickButton(rightJoystick, |
19 | Constants.OI.RIGHT_STICK_LEFT_SILVER_BUTTON); | |
cb3389eb E |
20 | |
21 | rightSilverButton = new JoystickButton(rightJoystick, | |
22 | Constants.OI.RIGHT_STICK_RIGHT_SILVER_BUTTON); | |
7a949394 | 23 | |
c0fb2d22 E |
24 | thumbButton = new JoystickButton(rightJoystick, |
25 | Constants.OI.RIGHT_STICK_THUMB_BUTTON); | |
26 | ||
38a404b3 | 27 | } |
cb3389eb | 28 | |
38a404b3 | 29 | } |