Class DefaultUserControls

java.lang.Object
org.wpilib.driverstation.DefaultUserControls
All Implemented Interfaces:
UserControls

public class DefaultUserControls extends Object implements UserControls
A default implementation of UserControls that provides Gamepad instances for each of the 6 joystick ports provided by the DS.
  • Constructor Details

    • DefaultUserControls

      Constructs a DefaultUserControls instance with Gamepads for each port.
  • Method Details

    • getGamepad

      public Gamepad getGamepad(int port)
      Returns the Gamepad instance for the specified port.
      Parameters:
      port - The joystick port number.
      Returns:
      The Gamepad instance for the given port.