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
Nested ClassesModifier and TypeClassDescriptionstatic classThere is a switch on the back of the controller this is for when the switch is in the D positionstatic classThere 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanMethods inherited from class com.stuypulse.stuylib.input.WPIGamepad
getButton, getGamepadName, getJoystick, getRawAxis, getRawButton, hasJoystick, setRumbleMethods 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:
getRawDPadUpin classGamepad- Returns:
- If the up d-pad button is pressed
-
getRawDPadDown
public boolean getRawDPadDown()- Overrides:
getRawDPadDownin classGamepad- Returns:
- If the down d-pad button is pressed
-
getRawDPadLeft
public boolean getRawDPadLeft()- Overrides:
getRawDPadLeftin classGamepad- Returns:
- If the left d-pad button is pressed
-
getRawDPadRight
public boolean getRawDPadRight()- Overrides:
getRawDPadRightin classGamepad- Returns:
- If the right d-pad button is pressed
-