Class Logitech
java.lang.Object
com.stuypulse.stuylib.input.Gamepad
com.stuypulse.stuylib.input.WPIGamepad
com.stuypulse.stuylib.input.gamepads.Logitech
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
- Direct Known Subclasses:
Logitech.DMode
Implementation of Logitech Controller and its 2 Modes for the Gamepad Class
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
There is a switch on the back of the controller this is for when the switch is in the D positionstatic class
There is a switch on the back of the controller this is for when the switch is in the X position. -
Field Summary
Fields inherited from class com.stuypulse.stuylib.input.Gamepad
ANALOG_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
Methods inherited from class com.stuypulse.stuylib.input.WPIGamepad
getButton, getGamepadName, getJoystick, getRawAxis, getRawButton, hasJoystick, setRumble
Methods inherited from class com.stuypulse.stuylib.input.Gamepad
getBottomButton, getDPad, getDPadDown, getDPadLeft, getDPadRight, getDPadUp, getDPadX, getDPadY, getLeftBumper, getLeftButton, getLeftMenuButton, getLeftStick, getLeftStickButton, getLeftStickDown, getLeftStickLeft, getLeftStickRight, getLeftStickUp, getLeftTrigger, getLeftTriggerButton, getLeftTriggerPressed, getLeftX, getLeftY, getRawBottomButton, getRawLeftBumper, getRawLeftButton, getRawLeftMenuButton, getRawLeftStickButton, getRawRightBumper, getRawRightButton, getRawRightMenuButton, getRawRightStickButton, getRawTopButton, getRightBumper, getRightButton, getRightMenuButton, getRightStick, getRightStickButton, getRightStickDown, getRightStickLeft, getRightStickRight, getRightStickUp, getRightTrigger, getRightTriggerButton, getRightTriggerPressed, getRightX, getRightY, getTopButton, initSendable
-
Constructor Details
-
Logitech
protected Logitech(int port) -
Logitech
protected Logitech(edu.wpi.first.wpilibj.Joystick joystick)
-
-
Method Details
-
getRawDPadUp
public boolean getRawDPadUp()- Overrides:
getRawDPadUp
in classGamepad
- Returns:
- If the up d-pad button is pressed
-
getRawDPadDown
public boolean getRawDPadDown()- Overrides:
getRawDPadDown
in classGamepad
- Returns:
- If the down d-pad button is pressed
-
getRawDPadLeft
public boolean getRawDPadLeft()- Overrides:
getRawDPadLeft
in classGamepad
- Returns:
- If the left d-pad button is pressed
-
getRawDPadRight
public boolean getRawDPadRight()- Overrides:
getRawDPadRight
in classGamepad
- Returns:
- If the right d-pad button is pressed
-