Class GenericController

java.lang.Object
edu.wpi.first.wpilibj.GenericHID
edu.wpi.first.wpilibj.Joystick
org.texastorque.torquelib.legacy.GenericController

@Deprecated public final class GenericController extends edu.wpi.first.wpilibj.Joystick
Deprecated.
Use TorqueController instead (GenericController).
A class that reads input from either a Logitech or Xbox controller.
  • Nested Class Summary

    Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.Joystick

    edu.wpi.first.wpilibj.Joystick.AxisType, edu.wpi.first.wpilibj.Joystick.ButtonType

    Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.GenericHID

    edu.wpi.first.wpilibj.GenericHID.HIDType, edu.wpi.first.wpilibj.GenericHID.RumbleType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int[]
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     

    Fields inherited from class edu.wpi.first.wpilibj.Joystick

    kDefaultThrottleChannel, kDefaultTwistChannel, kDefaultXChannel, kDefaultYChannel, kDefaultZChannel
  • Constructor Summary

    Constructors
    Constructor
    Description
    GenericController(int port, double dband)
    Deprecated.
     
    GenericController(int port, int type, double dband)
    Deprecated.
    Create a new controller.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    int
    Deprecated.
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    double
    Deprecated.
     
    double
    Deprecated.
     
    double
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    double
    Deprecated.
     
    double
    Deprecated.
     
    double
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    void
    setDeadband(double dband)
    Deprecated.
    Set the deadband of the controller.
    void
    setLeftRumble(boolean on)
    Deprecated.
     
    void
    setRightRumble(boolean on)
    Deprecated.
     
    void
    setRumble(boolean on)
    Deprecated.
     
    void
    setType(int type)
    Deprecated.
    Change controller type.

    Methods inherited from class edu.wpi.first.wpilibj.Joystick

    getDirectionDegrees, getDirectionRadians, getMagnitude, getThrottle, getThrottleChannel, getTop, getTopPressed, getTopReleased, getTrigger, getTriggerPressed, getTriggerReleased, getTwist, getTwistChannel, getX, getXChannel, getY, getYChannel, getZ, getZChannel, setThrottleChannel, setTwistChannel, setXChannel, setYChannel, setZChannel, top, trigger

    Methods inherited from class edu.wpi.first.wpilibj.GenericHID

    axisGreaterThan, axisLessThan, button, getAxisCount, getAxisType, getButtonCount, getName, getPort, getPOV, getPOV, getPOVCount, getRawAxis, getRawButton, getRawButtonPressed, getRawButtonReleased, getType, isConnected, pov, pov, povCenter, povDown, povDownLeft, povDownRight, povLeft, povRight, povUp, povUpLeft, povUpRight, setOutput, setOutputs, setRumble

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE_LOGITECH

      public static final int TYPE_LOGITECH
      Deprecated.
      See Also:
    • TYPE_XBOX

      public static final int TYPE_XBOX
      Deprecated.
      See Also:
    • controllerMap

      public int[] controllerMap
      Deprecated.
  • Constructor Details

    • GenericController

      public GenericController(int port, double dband)
      Deprecated.
    • GenericController

      public GenericController(int port, int type, double dband)
      Deprecated.
      Create a new controller.
      Parameters:
      port - Which Driver Station port the controller is in (use constant).
      type - Type of controller.
      dband - The size of the deadband.
  • Method Details

    • setDeadband

      public void setDeadband(double dband)
      Deprecated.
      Set the deadband of the controller.
      Parameters:
      dband - The new deadband to use.
    • setType

      public void setType(int type)
      Deprecated.
      Change controller type. Will default to Xbox if an incorrect type is given.
      Parameters:
      type - New controller type.
    • getControllerType

      @Deprecated public int getControllerType()
      Deprecated.
    • getLeftYAxis

      public double getLeftYAxis()
      Deprecated.
    • getLeftXAxis

      public double getLeftXAxis()
      Deprecated.
    • getRightYAxis

      public double getRightYAxis()
      Deprecated.
    • getRightXAxis

      public double getRightXAxis()
      Deprecated.
    • getLeftStickClick

      public boolean getLeftStickClick()
      Deprecated.
    • getRightStickClick

      public boolean getRightStickClick()
      Deprecated.
    • getLeftBumper

      public boolean getLeftBumper()
      Deprecated.
    • getRightBumper

      public boolean getRightBumper()
      Deprecated.
    • getLeftTrigger

      public boolean getLeftTrigger()
      Deprecated.
    • getLeftZAxis

      public double getLeftZAxis()
      Deprecated.
    • getRightTrigger

      public boolean getRightTrigger()
      Deprecated.
    • getRightZAxis

      public double getRightZAxis()
      Deprecated.
    • getLeftCenterButton

      public boolean getLeftCenterButton()
      Deprecated.
    • getRightCenterButton

      public boolean getRightCenterButton()
      Deprecated.
    • getXButton

      public boolean getXButton()
      Deprecated.
    • getYButton

      public boolean getYButton()
      Deprecated.
    • getBButton

      public boolean getBButton()
      Deprecated.
    • getAButton

      public boolean getAButton()
      Deprecated.
    • getAButtonReleased

      public boolean getAButtonReleased()
      Deprecated.
    • getBButtonReleased

      public boolean getBButtonReleased()
      Deprecated.
    • getXButtonReleased

      public boolean getXButtonReleased()
      Deprecated.
    • getYButtonReleased

      public boolean getYButtonReleased()
      Deprecated.
    • getAButtonPressed

      public boolean getAButtonPressed()
      Deprecated.
    • getBButtonPressed

      public boolean getBButtonPressed()
      Deprecated.
    • getXButtonPressed

      public boolean getXButtonPressed()
      Deprecated.
    • getYButtonPressed

      public boolean getYButtonPressed()
      Deprecated.
    • getDPADUp

      public boolean getDPADUp()
      Deprecated.
    • getDPADUpLeft

      public boolean getDPADUpLeft()
      Deprecated.
    • getDPADUpRight

      public boolean getDPADUpRight()
      Deprecated.
    • getDPADRight

      public boolean getDPADRight()
      Deprecated.
    • getDPADDownRight

      public boolean getDPADDownRight()
      Deprecated.
    • getDPADDown

      public boolean getDPADDown()
      Deprecated.
    • getDPADDownLeft

      public boolean getDPADDownLeft()
      Deprecated.
    • getDPADLeft

      public boolean getDPADLeft()
      Deprecated.
    • setLeftRumble

      public void setLeftRumble(boolean on)
      Deprecated.
    • setRightRumble

      public void setRightRumble(boolean on)
      Deprecated.
    • setRumble

      public void setRumble(boolean on)
      Deprecated.