WPILibC++  2020.3.2-60-g3011ebe
PressedButtonScheduler.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2011-2019 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include "frc/buttons/ButtonScheduler.h"
11 
12 namespace frc {
13 
14 class Trigger;
15 class Command;
16 
18  public:
19  PressedButtonScheduler(bool last, Trigger* button, Command* orders);
20  virtual ~PressedButtonScheduler() = default;
21 
23  PressedButtonScheduler& operator=(PressedButtonScheduler&&) = default;
24 
25  virtual void Execute();
26 };
27 
28 } // namespace frc
frc::Command
The Command class is at the very core of the entire command framework.
Definition: Command.h:49
frc::Trigger
This class provides an easy way to link commands to inputs.
Definition: Trigger.h:32
frc::PressedButtonScheduler
Definition: PressedButtonScheduler.h:17
frc
A class that enforces constraints on the differential drive kinematics.
Definition: PDPSim.h:16
frc::ButtonScheduler
Definition: ButtonScheduler.h:15