Package edu.wpi.first.wpilibj.simulation
Class StadiaControllerSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.GenericHIDSim
edu.wpi.first.wpilibj.simulation.StadiaControllerSim
Class to control a simulated Stadia controller.
-
Field Summary
Fields inherited from class edu.wpi.first.wpilibj.simulation.GenericHIDSim
m_port -
Constructor Summary
ConstructorsConstructorDescriptionStadiaControllerSim(int port) Constructs from a joystick port number.StadiaControllerSim(StadiaController joystick) Constructs from a StadiaController 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 edu.wpi.first.wpilibj.simulation.GenericHIDSim
getOutput, getOutputs, getRumble, notifyNewData, setAxisCount, setAxisType, setButtonCount, setName, setPOV, setPOV, setPOVCount, setRawAxis, setRawButton, setType
-
Constructor Details
-
StadiaControllerSim
Constructs from a StadiaController object.- Parameters:
joystick- controller to simulate
-
StadiaControllerSim
Constructs from a joystick port number.- Parameters:
port- port number
-
-
Method Details
-
setLeftX
Change the left X value of the controller's joystick.- Parameters:
value- the new value
-
setRightX
Change the right X value of the controller's joystick.- Parameters:
value- the new value
-
setLeftY
Change the left Y value of the controller's joystick.- Parameters:
value- the new value
-
setRightY
Change the right Y value of the controller's joystick.- Parameters:
value- the new value
-
setAButton
Change the value of the A button on the controller.- Parameters:
value- the new value
-
setBButton
Change the value of the B button on the controller.- Parameters:
value- the new value
-
setXButton
Change the value of the X button on the controller.- Parameters:
value- the new value
-
setYButton
Change the value of the Y button on the controller.- Parameters:
value- the new value
-
setLeftBumperButton
Change the value of the left bumper button on the controller.- Parameters:
value- the new value
-
setRightBumperButton
Change the value of the right bumper button on the controller.- Parameters:
value- the new value
-
setLeftStickButton
Change the value of the left stick button on the controller.- Parameters:
value- the new value
-
setRightStickButton
Change the value of the right stick button on the controller.- Parameters:
value- the new value
-
setEllipsesButton
Change the value of the ellipses button on the controller.- Parameters:
value- the new value
-
setHamburgerButton
Change the value of the hamburger button on the controller.- Parameters:
value- the new value
-
setStadiaButton
Change the value of the stadia button on the controller.- Parameters:
value- the new value
-
setRightTriggerButton
Change the value of the right trigger button on the controller.- Parameters:
value- the new value
-
setLeftTriggerButton
Change the value of the left trigger button on the controller.- Parameters:
value- the new value
-
setGoogleButton
Change the value of the google button on the controller.- Parameters:
value- the new value
-
setFrameButton
Change the value of the frame button on the controller.- Parameters:
value- the new value
-