// 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/buttons/Button.h" namespace frc { class InternalButton : public Button { public: InternalButton() = default; explicit InternalButton(bool inverted); virtual ~InternalButton() = default; InternalButton(InternalButton&&) = default; InternalButton& operator=(InternalButton&&) = default; void SetInverted(bool inverted); void SetPressed(bool pressed); virtual bool Get(); private: bool m_pressed = false; bool m_inverted = false; }; } // namespace frc