// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

// THIS FILE WAS AUTO-GENERATED BY ./wpilibj/generate_hids.py. DO NOT MODIFY

package edu.wpi.first.wpilibj.simulation;

import edu.wpi.first.wpilibj.StadiaController;

/** Class to control a simulated Stadia controller. */
public class StadiaControllerSim extends GenericHIDSim {
  /**
   * Constructs from a StadiaController object.
   *
   * @param joystick controller to simulate
   */
  @SuppressWarnings("this-escape")
  public StadiaControllerSim(StadiaController joystick) {
    super(joystick);
    setAxisCount(4);
    setButtonCount(15);
    setPOVCount(1);
  }

  /**
   * Constructs from a joystick port number.
   *
   * @param port port number
   */
  @SuppressWarnings("this-escape")
  public StadiaControllerSim(int port) {
    super(port);
    setAxisCount(4);
    setButtonCount(15);
    setPOVCount(1);
  }

  /**
   * Change the left X value of the controller's joystick.
   *
   * @param value the new value
   */
  public void setLeftX(double value) {
    setRawAxis(StadiaController.Axis.kLeftX.value, value);
  }

  /**
   * Change the right X value of the controller's joystick.
   *
   * @param value the new value
   */
  public void setRightX(double value) {
    setRawAxis(StadiaController.Axis.kRightX.value, value);
  }

  /**
   * Change the left Y value of the controller's joystick.
   *
   * @param value the new value
   */
  public void setLeftY(double value) {
    setRawAxis(StadiaController.Axis.kLeftY.value, value);
  }

  /**
   * Change the right Y value of the controller's joystick.
   *
   * @param value the new value
   */
  public void setRightY(double value) {
    setRawAxis(StadiaController.Axis.kRightY.value, value);
  }

  /**
   * Change the value of the A button on the controller.
   *
   * @param value the new value
   */
  public void setAButton(boolean value) {
    setRawButton(StadiaController.Button.kA.value, value);
  }

  /**
   * Change the value of the B button on the controller.
   *
   * @param value the new value
   */
  public void setBButton(boolean value) {
    setRawButton(StadiaController.Button.kB.value, value);
  }

  /**
   * Change the value of the X button on the controller.
   *
   * @param value the new value
   */
  public void setXButton(boolean value) {
    setRawButton(StadiaController.Button.kX.value, value);
  }

  /**
   * Change the value of the Y button on the controller.
   *
   * @param value the new value
   */
  public void setYButton(boolean value) {
    setRawButton(StadiaController.Button.kY.value, value);
  }

  /**
   * Change the value of the left bumper button on the controller.
   *
   * @param value the new value
   */
  public void setLeftBumperButton(boolean value) {
    setRawButton(StadiaController.Button.kLeftBumper.value, value);
  }

  /**
   * Change the value of the right bumper button on the controller.
   *
   * @param value the new value
   */
  public void setRightBumperButton(boolean value) {
    setRawButton(StadiaController.Button.kRightBumper.value, value);
  }

  /**
   * Change the value of the left stick button on the controller.
   *
   * @param value the new value
   */
  public void setLeftStickButton(boolean value) {
    setRawButton(StadiaController.Button.kLeftStick.value, value);
  }

  /**
   * Change the value of the right stick button on the controller.
   *
   * @param value the new value
   */
  public void setRightStickButton(boolean value) {
    setRawButton(StadiaController.Button.kRightStick.value, value);
  }

  /**
   * Change the value of the ellipses button on the controller.
   *
   * @param value the new value
   */
  public void setEllipsesButton(boolean value) {
    setRawButton(StadiaController.Button.kEllipses.value, value);
  }

  /**
   * Change the value of the hamburger button on the controller.
   *
   * @param value the new value
   */
  public void setHamburgerButton(boolean value) {
    setRawButton(StadiaController.Button.kHamburger.value, value);
  }

  /**
   * Change the value of the stadia button on the controller.
   *
   * @param value the new value
   */
  public void setStadiaButton(boolean value) {
    setRawButton(StadiaController.Button.kStadia.value, value);
  }

  /**
   * Change the value of the right trigger button on the controller.
   *
   * @param value the new value
   */
  public void setRightTriggerButton(boolean value) {
    setRawButton(StadiaController.Button.kRightTrigger.value, value);
  }

  /**
   * Change the value of the left trigger button on the controller.
   *
   * @param value the new value
   */
  public void setLeftTriggerButton(boolean value) {
    setRawButton(StadiaController.Button.kLeftTrigger.value, value);
  }

  /**
   * Change the value of the google button on the controller.
   *
   * @param value the new value
   */
  public void setGoogleButton(boolean value) {
    setRawButton(StadiaController.Button.kGoogle.value, value);
  }

  /**
   * Change the value of the frame button on the controller.
   *
   * @param value the new value
   */
  public void setFrameButton(boolean value) {
    setRawButton(StadiaController.Button.kFrame.value, value);
  }
}
