Class POV
java.lang.Object
io.github.tigerbotics7125.tigerlib.input.controller.POV
-
Constructor Details
-
POV
public POV(edu.wpi.first.wpilibj.GenericHID joystick) - Parameters:
joystick
- The HID device to read POV 0 from.
-
POV
public POV(edu.wpi.first.wpilibj.GenericHID joystick, int povNumber) - Parameters:
joystick
- the HID controller to read the POV from.povNumber
- The controller POV index to use.
-
-
Method Details
-
center
- Returns:
- The centered (not pressed)
JoystickPOVTrigger
.
-
up
- Returns:
- The upper (0 degrees)
JoystickPOVTrigger
.
-
upRight
- Returns:
- The upper right (45 degrees)
JoystickPOVTrigger
.
-
right
- Returns:
- The right (90 degrees)
JoystickPOVTrigger
.
-
downRight
- Returns:
- The lower right (135 degrees)
JoystickPOVTrigger
.
-
down
- Returns:
- The lower (180 degrees)
JoystickPOVTrigger
.
-
downLeft
- Returns:
- The lower left (225 degrees)
JoystickPOVTrigger
.
-
left
- Returns:
- The left (270 degrees)
JoystickPOVTrigger
.
-
upLeft
- Returns:
- The upper left (315 degrees)
JoystickPOVTrigger
.
-