Class SwitchN64ControllerSim

java.lang.Object
org.wpilib.simulation.GenericHIDSim
org.wpilib.simulation.SwitchN64ControllerSim

public class SwitchN64ControllerSim extends GenericHIDSim
Class to control a simulated SwitchN64 controller.
  • Constructor Details

    • SwitchN64ControllerSim

      public SwitchN64ControllerSim(SwitchN64Controller joystick)
      Constructs from a SwitchN64Controller object.
      Parameters:
      joystick - controller to simulate
    • SwitchN64ControllerSim

      public SwitchN64ControllerSim(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
    • setZAxis

      public void setZAxis(double value)
      Change the Z Axis value of the controller.
      Parameters:
      value - the new value
    • setZR

      public void setZR(double value)
      Change the ZR 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
    • setCLeftButton

      public void setCLeftButton(boolean value)
      Change the value of the C Left button on the controller.
      Parameters:
      value - the new value
    • setCUpButton

      public void setCUpButton(boolean value)
      Change the value of the C Up button on the controller.
      Parameters:
      value - the new value
    • setCaptureButton

      public void setCaptureButton(boolean value)
      Change the value of the Capture button on the controller.
      Parameters:
      value - the new value
    • setHomeButton

      public void setHomeButton(boolean value)
      Change the value of the Home 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
    • setCDownButton

      public void setCDownButton(boolean value)
      Change the value of the C Down 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
    • 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
    • setCRightButton

      public void setCRightButton(boolean value)
      Change the value of the C Right button on the controller.
      Parameters:
      value - the new value