Class Gamepad1


  • public class Gamepad1
    extends edu.wpi.first.wpilibj.XboxController
    Use this for reading inputs from Xbox controller 0
    • Nested Class Summary

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

        edu.wpi.first.wpilibj.XboxController.Axis, edu.wpi.first.wpilibj.XboxController.Button
      • Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.GenericHID

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

      Constructors 
      Constructor Description
      Gamepad1()
      Use this for reading inputs from Xbox controller 0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getLeftY()
      Get the inverted Y axis value of left side of the controller.
      double getRightY()
      Get the inverted Y axis value of right side of the controller.
      void setRumble​(double left, double right)
      Rumble the gamepad
      • Methods inherited from class edu.wpi.first.wpilibj.XboxController

        getAButton, getAButtonPressed, getAButtonReleased, getBackButton, getBackButtonPressed, getBackButtonReleased, getBButton, getBButtonPressed, getBButtonReleased, getLeftBumper, getLeftBumperPressed, getLeftBumperReleased, getLeftStickButton, getLeftStickButtonPressed, getLeftStickButtonReleased, getLeftTriggerAxis, getLeftX, getRightBumper, getRightBumperPressed, getRightBumperReleased, getRightStickButton, getRightStickButtonPressed, getRightStickButtonReleased, getRightTriggerAxis, getRightX, getStartButton, getStartButtonPressed, getStartButtonReleased, getXButton, getXButtonPressed, getXButtonReleased, getYButton, getYButtonPressed, getYButtonReleased
      • Methods inherited from class edu.wpi.first.wpilibj.GenericHID

        getAxisCount, getAxisType, getButtonCount, getName, getPort, getPOV, getPOV, getPOVCount, getRawAxis, getRawButton, getRawButtonPressed, getRawButtonReleased, getType, isConnected, setOutput, setOutputs, setRumble
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Gamepad1

        public Gamepad1()
        Use this for reading inputs from Xbox controller 0
    • Method Detail

      • setRumble

        public void setRumble​(double left,
                              double right)
        Rumble the gamepad
        Parameters:
        left - the amount to vibrate the left vibrater (0 to 1)
        right - the amount to vibrate the right vibrater (0 to 1)
      • getLeftY

        public double getLeftY()
        Get the inverted Y axis value of left side of the controller.
        Overrides:
        getLeftY in class edu.wpi.first.wpilibj.XboxController
        Returns:
        The axis value.
      • getRightY

        public double getRightY()
        Get the inverted Y axis value of right side of the controller.
        Overrides:
        getRightY in class edu.wpi.first.wpilibj.XboxController
        Returns:
        The axis value.