Class LogitechF310ControllerSim

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

public class LogitechF310ControllerSim extends GenericHIDSim
Class to control a simulated LogitechF310 controller.
  • Constructor Details

    • LogitechF310ControllerSim

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

      public LogitechF310ControllerSim(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
    • setBackButton

      public void setBackButton(boolean value)
      Change the value of the Back button on the controller.
      Parameters:
      value - the new value
    • setLogitechButton

      public void setLogitechButton(boolean value)
      Change the value of the Logitech 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
    • 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