// 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 ./wpilibc/generate_hids.py. DO NOT MODIFY

#include "wpi/simulation/NiDsPS5ControllerSim.hpp"

#include "wpi/driverstation/NiDsPS5Controller.hpp"

using namespace wpi;
using namespace wpi::sim;

NiDsPS5ControllerSim::NiDsPS5ControllerSim(const NiDsPS5Controller& joystick)
    : GenericHIDSim{joystick} {
  SetAxesMaximumIndex(6);
  SetButtonsMaximumIndex(14);
  SetPOVsMaximumIndex(1);
}

NiDsPS5ControllerSim::NiDsPS5ControllerSim(int port) : GenericHIDSim{port} {
  SetAxesMaximumIndex(6);
  SetButtonsMaximumIndex(14);
  SetPOVsMaximumIndex(1);
}

void NiDsPS5ControllerSim::SetLeftX(double value) {
  SetRawAxis(NiDsPS5Controller::Axis::kLeftX, value);
}

void NiDsPS5ControllerSim::SetLeftY(double value) {
  SetRawAxis(NiDsPS5Controller::Axis::kLeftY, value);
}

void NiDsPS5ControllerSim::SetRightX(double value) {
  SetRawAxis(NiDsPS5Controller::Axis::kRightX, value);
}

void NiDsPS5ControllerSim::SetRightY(double value) {
  SetRawAxis(NiDsPS5Controller::Axis::kRightY, value);
}

void NiDsPS5ControllerSim::SetL2Axis(double value) {
  SetRawAxis(NiDsPS5Controller::Axis::kL2, value);
}

void NiDsPS5ControllerSim::SetR2Axis(double value) {
  SetRawAxis(NiDsPS5Controller::Axis::kR2, value);
}

void NiDsPS5ControllerSim::SetSquareButton(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kSquare, value);
}

void NiDsPS5ControllerSim::SetCrossButton(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kCross, value);
}

void NiDsPS5ControllerSim::SetCircleButton(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kCircle, value);
}

void NiDsPS5ControllerSim::SetTriangleButton(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kTriangle, value);
}

void NiDsPS5ControllerSim::SetL1Button(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kL1, value);
}

void NiDsPS5ControllerSim::SetR1Button(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kR1, value);
}

void NiDsPS5ControllerSim::SetL2Button(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kL2, value);
}

void NiDsPS5ControllerSim::SetR2Button(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kR2, value);
}

void NiDsPS5ControllerSim::SetCreateButton(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kCreate, value);
}

void NiDsPS5ControllerSim::SetOptionsButton(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kOptions, value);
}

void NiDsPS5ControllerSim::SetL3Button(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kL3, value);
}

void NiDsPS5ControllerSim::SetR3Button(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kR3, value);
}

void NiDsPS5ControllerSim::SetPSButton(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kPS, value);
}

void NiDsPS5ControllerSim::SetTouchpadButton(bool value) {
  SetRawButton(NiDsPS5Controller::Button::kTouchpad, value);
}
