mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Add NOLINT to CommandTestBase due to gmock not adding "override" keyword, which causes warnings on clang.
28 lines
649 B
C++
28 lines
649 B
C++
// 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.
|
|
|
|
#pragma once
|
|
|
|
#include "frc/GenericHID.h"
|
|
#include "frc/buttons/Button.h"
|
|
|
|
namespace frc {
|
|
|
|
class JoystickButton : public Button {
|
|
public:
|
|
JoystickButton(GenericHID* joystick, int buttonNumber);
|
|
~JoystickButton() override = default;
|
|
|
|
JoystickButton(JoystickButton&&) = default;
|
|
JoystickButton& operator=(JoystickButton&&) = default;
|
|
|
|
bool Get() override;
|
|
|
|
private:
|
|
GenericHID* m_joystick;
|
|
int m_buttonNumber;
|
|
};
|
|
|
|
} // namespace frc
|