Class GamepadBase


  • @Deprecated
    public abstract class GamepadBase
    extends GenericHID
    Deprecated.
    Inherit directly from GenericHID instead.
    Gamepad Interface.
    • Constructor Detail

      • GamepadBase

        public GamepadBase​(int port)
        Deprecated.
    • Method Detail

      • getRawAxis

        public abstract double getRawAxis​(int axis)
        Deprecated.
        Description copied from class: GenericHID
        Get the value of the axis.
        Overrides:
        getRawAxis in class GenericHID
        Parameters:
        axis - The axis to read, starting at 0.
        Returns:
        The value of the axis.
      • getBumper

        public abstract boolean getBumper​(GenericHID.Hand hand)
        Deprecated.
        Is the bumper pressed.
        Parameters:
        hand - which hand
        Returns:
        true if the bumper is pressed
      • getBumper

        public boolean getBumper()
        Deprecated.
        Is the bumper pressed.
        Returns:
        true if the bumper is pressed
      • getStickButton

        public abstract boolean getStickButton​(GenericHID.Hand hand)
        Deprecated.
      • getStickButton

        public boolean getStickButton()
        Deprecated.
      • getRawButton

        public abstract boolean getRawButton​(int button)
        Deprecated.
        Description copied from class: GenericHID
        Get the button value (starting at button 1).

        The buttons are returned in a single 16 bit value with one bit representing the state of each button. The appropriate button is returned as a boolean value.

        Overrides:
        getRawButton in class GenericHID
        Parameters:
        button - The button number to be read (starting at 1)
        Returns:
        The state of the button.
      • getPOV

        public abstract int getPOV​(int pov)
        Deprecated.
        Description copied from class: GenericHID
        Get the angle in degrees of a POV on the HID.

        The POV angles start at 0 in the up direction, and increase clockwise (eg right is 90, upper-left is 315).

        Overrides:
        getPOV in class GenericHID
        Parameters:
        pov - The index of the POV to read (starting at 0)
        Returns:
        the angle of the POV in degrees, or -1 if the POV is not pressed.
      • getPOVCount

        public abstract int getPOVCount()
        Deprecated.
        Description copied from class: GenericHID
        For the current HID, return the number of POVs.
        Overrides:
        getPOVCount in class GenericHID
      • getName

        public abstract String getName()
        Deprecated.
        Description copied from class: GenericHID
        Get the name of the HID.
        Overrides:
        getName in class GenericHID
        Returns:
        the name of the HID.
      • setOutput

        public abstract void setOutput​(int outputNumber,
                                       boolean value)
        Deprecated.
        Description copied from class: GenericHID
        Set a single HID output value for the HID.
        Overrides:
        setOutput in class GenericHID
        Parameters:
        outputNumber - The index of the output to set (1-32)
        value - The value to set the output to
      • setOutputs

        public abstract void setOutputs​(int value)
        Deprecated.
        Description copied from class: GenericHID
        Set all HID output values for the HID.
        Overrides:
        setOutputs in class GenericHID
        Parameters:
        value - The 32 bit output value (1 bit for each output)
      • setRumble

        public abstract void setRumble​(GenericHID.RumbleType type,
                                       double value)
        Deprecated.
        Description copied from class: GenericHID
        Set the rumble output for the HID. The DS currently supports 2 rumble values, left rumble and right rumble.
        Overrides:
        setRumble in class GenericHID
        Parameters:
        type - Which rumble value to set
        value - The normalized value (0 to 1) to set the rumble to