Class SteamControllerSim
java.lang.Object
org.wpilib.simulation.GenericHIDSim
org.wpilib.simulation.SteamControllerSim
Class to control a simulated Steam controller.
-
Field Summary
Fields inherited from class GenericHIDSim
m_port -
Constructor Summary
ConstructorsConstructorDescriptionSteamControllerSim(int port) Constructs from a joystick port number.SteamControllerSim(SteamController joystick) Constructs from a SteamController 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.voidsetDpadDownButton(boolean value) Change the value of the Dpad Down button on the controller.voidsetDpadLeftButton(boolean value) Change the value of the Dpad Left button on the controller.voidsetDpadRightButton(boolean value) Change the value of the Dpad Right button on the controller.voidsetDpadUpButton(boolean value) Change the value of the Dpad Up button on the controller.voidsetLeftBumperButton(boolean value) Change the value of the Left Bumper button on the controller.voidsetLeftGripTouchButton(boolean value) Change the value of the Left Grip Touch button on the controller.voidsetLeftPaddle1Button(boolean value) Change the value of the Left Paddle 1 button on the controller.voidsetLeftPaddle2Button(boolean value) Change the value of the Left Paddle 2 button on the controller.voidsetLeftStickButton(boolean value) Change the value of the Left Stick button on the controller.voidsetLeftStickTouchButton(boolean value) Change the value of the Left Stick Touch button on the controller.voidsetLeftTouchpadButton(boolean value) Change the value of the Left Touchpad button on the controller.voidsetLeftTrigger(double value) Change the Left Trigger value of the controller.voidsetLeftX(double value) Change the Left X value of the controller.voidsetLeftY(double value) Change the Left Y value of the controller.voidsetMenuButton(boolean value) Change the value of the Menu button on the controller.voidsetQAMButton(boolean value) Change the value of the QAM button on the controller.voidsetRightBumperButton(boolean value) Change the value of the Right Bumper button on the controller.voidsetRightGripTouchButton(boolean value) Change the value of the Right Grip Touch button on the controller.voidsetRightPaddle1Button(boolean value) Change the value of the Right Paddle 1 button on the controller.voidsetRightPaddle2Button(boolean value) Change the value of the Right Paddle 2 button on the controller.voidsetRightStickButton(boolean value) Change the value of the Right Stick button on the controller.voidsetRightStickTouchButton(boolean value) Change the value of the Right Stick Touch button on the controller.voidsetRightTouchpadButton(boolean value) Change the value of the Right Touchpad button on the controller.voidsetRightTrigger(double value) Change the Right Trigger value of the controller.voidsetRightX(double value) Change the Right X value of the controller.voidsetRightY(double value) Change the Right Y value of the controller.voidsetSteamButton(boolean value) Change the value of the Steam button on the controller.voidsetViewButton(boolean value) Change the value of the View 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
-
SteamControllerSim
Constructs from a SteamController object.- Parameters:
joystick- controller to simulate
-
SteamControllerSim
public SteamControllerSim(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.- Parameters:
value- the new value
-
setLeftY
public void setLeftY(double value) Change the Left Y value of the controller.- Parameters:
value- the new value
-
setRightX
public void setRightX(double value) Change the Right X value of the controller.- Parameters:
value- the new value
-
setRightY
public void setRightY(double value) Change the Right Y value of the controller.- Parameters:
value- the new value
-
setLeftTrigger
public void setLeftTrigger(double value) Change the Left Trigger value of the controller.- Parameters:
value- the new value
-
setRightTrigger
public void setRightTrigger(double value) Change the Right Trigger value of the controller.- 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
-
setMenuButton
public void setMenuButton(boolean value) Change the value of the Menu button on the controller.- Parameters:
value- the new value
-
setSteamButton
public void setSteamButton(boolean value) Change the value of the Steam button on the controller.- Parameters:
value- the new value
-
setViewButton
public void setViewButton(boolean value) Change the value of the View 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
-
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
-
setDpadUpButton
public void setDpadUpButton(boolean value) Change the value of the Dpad Up button on the controller.- Parameters:
value- the new value
-
setDpadDownButton
public void setDpadDownButton(boolean value) Change the value of the Dpad Down button on the controller.- Parameters:
value- the new value
-
setDpadLeftButton
public void setDpadLeftButton(boolean value) Change the value of the Dpad Left button on the controller.- Parameters:
value- the new value
-
setDpadRightButton
public void setDpadRightButton(boolean value) Change the value of the Dpad Right button on the controller.- Parameters:
value- the new value
-
setQAMButton
public void setQAMButton(boolean value) Change the value of the QAM button on the controller.- Parameters:
value- the new value
-
setRightPaddle1Button
public void setRightPaddle1Button(boolean value) Change the value of the Right Paddle 1 button on the controller.- Parameters:
value- the new value
-
setLeftPaddle1Button
public void setLeftPaddle1Button(boolean value) Change the value of the Left Paddle 1 button on the controller.- Parameters:
value- the new value
-
setRightPaddle2Button
public void setRightPaddle2Button(boolean value) Change the value of the Right Paddle 2 button on the controller.- Parameters:
value- the new value
-
setLeftPaddle2Button
public void setLeftPaddle2Button(boolean value) Change the value of the Left Paddle 2 button on the controller.- Parameters:
value- the new value
-
setLeftTouchpadButton
public void setLeftTouchpadButton(boolean value) Change the value of the Left Touchpad button on the controller.- Parameters:
value- the new value
-
setRightTouchpadButton
public void setRightTouchpadButton(boolean value) Change the value of the Right Touchpad button on the controller.- Parameters:
value- the new value
-
setLeftStickTouchButton
public void setLeftStickTouchButton(boolean value) Change the value of the Left Stick Touch button on the controller.- Parameters:
value- the new value
-
setRightStickTouchButton
public void setRightStickTouchButton(boolean value) Change the value of the Right Stick Touch button on the controller.- Parameters:
value- the new value
-
setLeftGripTouchButton
public void setLeftGripTouchButton(boolean value) Change the value of the Left Grip Touch button on the controller.- Parameters:
value- the new value
-
setRightGripTouchButton
public void setRightGripTouchButton(boolean value) Change the value of the Right Grip Touch button on the controller.- Parameters:
value- the new value
-