File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/java/com/stuypulse/stuylib/input/gamepads Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 66
77import com .stuypulse .stuylib .input .WPIGamepad ;
88
9+ import edu .wpi .first .wpilibj .DriverStation ;
910import edu .wpi .first .wpilibj .Joystick ;
1011
1112/**
@@ -53,24 +54,24 @@ public double getRightY() {
5354 }
5455
5556 // D-Pad //
56- @ Override
57+ @ Override
5758 public boolean getRawDPadUp () {
58- return getJoystick ().getPOV () == 0 ;
59+ return getJoystick ().getPOV (). equals ( DriverStation . POVDirection . Up ) ;
5960 }
6061
6162 @ Override
6263 public boolean getRawDPadDown () {
63- return getJoystick ().getPOV () == 180 ;
64+ return getJoystick ().getPOV (). equals ( DriverStation . POVDirection . Down ) ;
6465 }
6566
6667 @ Override
6768 public boolean getRawDPadLeft () {
68- return getJoystick ().getPOV () == 270 ;
69+ return getJoystick ().getPOV (). equals ( DriverStation . POVDirection . Left ) ;
6970 }
7071
7172 @ Override
7273 public boolean getRawDPadRight () {
73- return getJoystick ().getPOV () == 90 ;
74+ return getJoystick ().getPOV (). equals ( DriverStation . POVDirection . Right ) ;
7475 }
7576
7677 // Bumpers //
You can’t perform that action at this time.
0 commit comments