Files
allwpilib/wpilibc/src/test/native/cpp/JoystickTest.cpp

21 lines
564 B
C++
Raw Normal View History

// 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.
#include "frc/Joystick.h" // NOLINT(build/include_order)
2021-08-05 22:04:51 -04:00
#include "JoystickTestMacros.h"
#include "frc/simulation/JoystickSim.h"
#include "gtest/gtest.h"
using namespace frc;
2021-08-05 22:04:51 -04:00
AXIS_TEST(Joystick, X)
AXIS_TEST(Joystick, Y)
AXIS_TEST(Joystick, Z)
AXIS_TEST(Joystick, Throttle)
AXIS_TEST(Joystick, Twist)
2021-08-05 22:04:51 -04:00
BUTTON_TEST(Joystick, Trigger)
BUTTON_TEST(Joystick, Top)