1 package org
.usfirst
.frc
.team3501
.robot
;
3 import edu
.wpi
.first
.wpilibj
.Joystick
;
4 import edu
.wpi
.first
.wpilibj
.buttons
.Button
;
5 import edu
.wpi
.first
.wpilibj
.buttons
.JoystickButton
;
8 public static Joystick leftJoystick
;
9 public static Joystick rightJoystick
;
10 public static Button leftSilverButton
;
11 public static Button rightSilverButton
;
14 leftJoystick
= new Joystick(Constants
.OI
.LEFT_STICK_PORT
);
15 rightJoystick
= new Joystick(Constants
.OI
.RIGHT_STICK_PORT
);
17 leftSilverButton
= new JoystickButton(rightJoystick
,
18 Constants
.OI
.RIGHT_STICK_LEFT_SILVER_BUTTON
);
21 rightSilverButton
= new JoystickButton(rightJoystick
,
22 Constants
.OI
.RIGHT_STICK_RIGHT_SILVER_BUTTON
);