Class Logitech.XMode
java.lang.Object
com.stuypulse.stuylib.input.Gamepad
com.stuypulse.stuylib.input.gamepads.Xbox
com.stuypulse.stuylib.input.gamepads.Logitech.XMode
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
- Enclosing class:
- Logitech
There is a switch on the back of the controller this is for when the switch is in the X
position.
Because of the use of XInput, this is equivilant to using Xbox
. However if you are
using a logitech controller on XMode, use this class for readability.
-
Field Summary
Fields inherited from class com.stuypulse.stuylib.input.Gamepad
ANALOG_THRESHOLD
-
Constructor Summary
-
Method Summary
Methods inherited from class com.stuypulse.stuylib.input.gamepads.Xbox
flipped, getJoystick, getLeftTrigger, getLeftX, getLeftY, getRawBottomButton, getRawDPadDown, getRawDPadLeft, getRawDPadRight, getRawDPadUp, getRawLeftBumper, getRawLeftButton, getRawLeftMenuButton, getRawLeftStickButton, getRawRightBumper, getRawRightButton, getRawRightMenuButton, getRawRightStickButton, getRawTopButton, getRightTrigger, getRightX, getRightY, 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, getLeftTriggerButton, getLeftTriggerPressed, getRightBumper, getRightButton, getRightMenuButton, getRightStick, getRightStickButton, getRightStickDown, getRightStickLeft, getRightStickRight, getRightStickUp, getRightTriggerButton, getRightTriggerPressed, getTopButton, initSendable
-
Constructor Details
-
XMode
public XMode(int port) -
XMode
public XMode(edu.wpi.first.wpilibj.XboxController joystick)
-
-
Method Details
-
getGamepadName
- Overrides:
getGamepadName
in classXbox
- Returns:
- The name of the gamepad being used
-