Class GameCubeControllerSim
java.lang.Object
org.wpilib.simulation.GenericHIDSim
org.wpilib.simulation.GameCubeControllerSim
Class to control a simulated GameCube controller.
-
Field Summary
Fields inherited from class GenericHIDSim
m_port -
Constructor Summary
ConstructorsConstructorDescriptionGameCubeControllerSim(int port) Constructs from a joystick port number.GameCubeControllerSim(GameCubeController joystick) Constructs from a GameCubeController 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.voidsetCStickX(double value) Change the C Stick X value of the controller.voidsetCStickY(double value) Change the C Stick Y value of 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.voidsetLButton(boolean value) Change the value of the L button on the controller.voidsetLeftX(double value) Change the Left X value of the controller.voidsetLeftY(double value) Change the Left Y value of the controller.voidsetLTrigger(double value) Change the L Trigger value of the controller.voidsetRButton(boolean value) Change the value of the R button on the controller.voidsetRTrigger(double value) Change the R Trigger value of the controller.voidsetStartButton(boolean value) Change the value of the Start 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.voidsetZButton(boolean value) Change the value of the Z 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
-
GameCubeControllerSim
Constructs from a GameCubeController object.- Parameters:
joystick- controller to simulate
-
GameCubeControllerSim
public GameCubeControllerSim(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
-
setCStickX
public void setCStickX(double value) Change the C Stick X value of the controller.- Parameters:
value- the new value
-
setCStickY
public void setCStickY(double value) Change the C Stick Y value of the controller.- Parameters:
value- the new value
-
setLTrigger
public void setLTrigger(double value) Change the L Trigger value of the controller.- Parameters:
value- the new value
-
setRTrigger
public void setRTrigger(double value) Change the R 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
-
setXButton
public void setXButton(boolean value) Change the value of the X 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
-
setYButton
public void setYButton(boolean value) Change the value of the Y button on the controller.- Parameters:
value- the new value
-
setStartButton
public void setStartButton(boolean value) Change the value of the Start button on the controller.- Parameters:
value- the new value
-
setZButton
public void setZButton(boolean value) Change the value of the Z 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
-
setLButton
public void setLButton(boolean value) Change the value of the L button on the controller.- Parameters:
value- the new value
-
setRButton
public void setRButton(boolean value) Change the value of the R button on the controller.- Parameters:
value- the new value
-