Class WsDPadButton


  • public class WsDPadButton
    extends DigitalInput
    Reads the d-pad on playstation controllers.
    • Constructor Detail

      • WsDPadButton

        public WsDPadButton​(java.lang.String p_name,
                            int p_port,
                            int p_buttonIndex)
        Construct the d-pad button.
        Parameters:
        p_name - Descriptive name of the button.
        p_port - Controller port as defined in the driver station.
        p_buttonIndex - Button index of the d-pad.
    • Method Detail

      • readRawValue

        protected boolean readRawValue()
        Reads the value from the d-pad and appropriately sets button press.
        Specified by:
        readRawValue in class DigitalInput
        Returns:
        True if pressed.