Class NiDsStadiaControllerSim
java.lang.Object
org.wpilib.simulation.GenericHIDSim
org.wpilib.simulation.NiDsStadiaControllerSim
Class to control a simulated NiDsStadia controller.
-
Field Summary
Fields inherited from class GenericHIDSim
m_port -
Constructor Summary
ConstructorsConstructorDescriptionNiDsStadiaControllerSim(int port) Constructs from a joystick port number.NiDsStadiaControllerSim(NiDsStadiaController joystick) Constructs from a NiDsStadiaController object. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAButton(boolean value) Change the value of the A button on the controller.voidsetBButton(boolean value) Change the value of the B button on the controller.voidsetEllipsesButton(boolean value) Change the value of the ellipses button on the controller.voidsetFrameButton(boolean value) Change the value of the frame button on the controller.voidsetGoogleButton(boolean value) Change the value of the google button on the controller.voidsetHamburgerButton(boolean value) Change the value of the hamburger button on the controller.voidsetLeftBumperButton(boolean value) Change the value of the left bumper button on the controller.voidsetLeftStickButton(boolean value) Change the value of the left stick button on the controller.voidsetLeftTriggerButton(boolean value) Change the value of the left trigger button on the controller.voidsetLeftX(double value) Change the left X value of the controller's joystick.voidsetLeftY(double value) Change the left Y value of the controller's joystick.voidsetRightBumperButton(boolean value) Change the value of the right bumper button on the controller.voidsetRightStickButton(boolean value) Change the value of the right stick button on the controller.voidsetRightTriggerButton(boolean value) Change the value of the right trigger button on the controller.voidsetRightX(double value) Change the right X value of the controller's joystick.voidsetRightY(double value) Change the right Y value of the controller's joystick.voidsetStadiaButton(boolean value) Change the value of the stadia button on the controller.voidsetXButton(boolean value) Change the value of the X button on the controller.voidsetYButton(boolean value) Change the value of the Y button on the controller.Methods inherited from class GenericHIDSim
getLeds, getRumble, notifyNewData, setAxesAvailable, setAxesMaximumIndex, setButtonsAvailable, setButtonsMaximumIndex, setGamepadType, setName, setPOV, setPOV, setPOVsAvailable, setPOVsMaximumIndex, setRawAxis, setRawButton, setSupportedOutputs
-
Constructor Details
-
NiDsStadiaControllerSim
Constructs from a NiDsStadiaController object.- Parameters:
joystick- controller to simulate
-
NiDsStadiaControllerSim
public NiDsStadiaControllerSim(int port) Constructs from a joystick port number.- Parameters:
port- port number
-
-
Method Details
-
setLeftX
public void setLeftX(double value) Change the left X value of the controller's joystick.- Parameters:
value- the new value
-
setRightX
public void setRightX(double value) Change the right X value of the controller's joystick.- Parameters:
value- the new value
-
setLeftY
public void setLeftY(double value) Change the left Y value of the controller's joystick.- Parameters:
value- the new value
-
setRightY
public void setRightY(double value) Change the right Y value of the controller's joystick.- Parameters:
value- the new value
-
setAButton
public void setAButton(boolean value) Change the value of the A button on the controller.- Parameters:
value- the new value
-
setBButton
public void setBButton(boolean value) Change the value of the B button on the controller.- Parameters:
value- the new value
-
setXButton
public void setXButton(boolean value) Change the value of the X button on the controller.- Parameters:
value- the new value
-
setYButton
public void setYButton(boolean value) Change the value of the Y button on the controller.- Parameters:
value- the new value
-
setLeftBumperButton
public void setLeftBumperButton(boolean value) Change the value of the left bumper button on the controller.- Parameters:
value- the new value
-
setRightBumperButton
public void setRightBumperButton(boolean value) Change the value of the right bumper button on the controller.- Parameters:
value- the new value
-
setLeftStickButton
public void setLeftStickButton(boolean value) Change the value of the left stick button on the controller.- Parameters:
value- the new value
-
setRightStickButton
public void setRightStickButton(boolean value) Change the value of the right stick button on the controller.- Parameters:
value- the new value
-
setEllipsesButton
public void setEllipsesButton(boolean value) Change the value of the ellipses button on the controller.- Parameters:
value- the new value
-
setHamburgerButton
public void setHamburgerButton(boolean value) Change the value of the hamburger button on the controller.- Parameters:
value- the new value
-
setStadiaButton
public void setStadiaButton(boolean value) Change the value of the stadia button on the controller.- Parameters:
value- the new value
-
setRightTriggerButton
public void setRightTriggerButton(boolean value) Change the value of the right trigger button on the controller.- Parameters:
value- the new value
-
setLeftTriggerButton
public void setLeftTriggerButton(boolean value) Change the value of the left trigger button on the controller.- Parameters:
value- the new value
-
setGoogleButton
public void setGoogleButton(boolean value) Change the value of the google button on the controller.- Parameters:
value- the new value
-
setFrameButton
public void setFrameButton(boolean value) Change the value of the frame button on the controller.- Parameters:
value- the new value
-