Class DefaultUserControls
java.lang.Object
org.wpilib.driverstation.DefaultUserControls
- All Implemented Interfaces:
UserControls
A default implementation of UserControls that provides Gamepad instances for each of the 6
joystick ports provided by the DS.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a DefaultUserControls instance with Gamepads for each port. -
Method Summary
Modifier and TypeMethodDescriptiongetGamepad(int port) Returns the Gamepad instance for the specified port.
-
Constructor Details
-
DefaultUserControls
public DefaultUserControls()Constructs a DefaultUserControls instance with Gamepads for each port.
-
-
Method Details
-
getGamepad
Returns the Gamepad instance for the specified port.- Parameters:
port- The joystick port number.- Returns:
- The Gamepad instance for the given port.
-