| 
    CTRE Phoenix C++ 5.34.0-beta-4
    
   | 
 
Class to handle button events. More...
#include <ctre/phoenix/tasking/ButtonMonitor.h>
  
Classes | |
| class | IButtonPressEventHandler | 
| Interface for classes that handle button events.  More... | |
Public Member Functions | |
| ButtonMonitor (frc::GenericHID *controller, int buttonIndex, IButtonPressEventHandler *ButtonPressEventHandler) | |
| Constructor for ButtonMonitor.  More... | |
| ButtonMonitor (const ButtonMonitor &rhs) | |
| This is able to copy another ButtonMonitor class.  More... | |
| virtual | ~ButtonMonitor () | 
| virtual void | Process () | 
| Call this every loop, it monitors for button presses.  More... | |
| virtual void | OnStart () | 
| Do nothing on start.  More... | |
| virtual void | OnLoop () | 
| Process every loop.  More... | |
| virtual bool | IsDone () | 
| virtual void | OnStop () | 
| Do nothing on stop.  More... | |
  Public Member Functions inherited from ctre::phoenix::tasking::IProcessable | |
| virtual | ~IProcessable () | 
| virtual void | Process ()=0 | 
| This function is called when a process occurs.  More... | |
  Public Member Functions inherited from ctre::phoenix::tasking::ILoopable | |
| virtual | ~ILoopable () | 
| virtual void | OnStart ()=0 | 
| Function called when object starts.  More... | |
| virtual void | OnLoop ()=0 | 
| Function called every loop.  More... | |
| virtual bool | IsDone ()=0 | 
| virtual void | OnStop ()=0 | 
| Function called when object stops.  More... | |
Class to handle button events.
| ctre::phoenix::tasking::ButtonMonitor::ButtonMonitor | ( | frc::GenericHID * | controller, | 
| int | buttonIndex, | ||
| IButtonPressEventHandler * | ButtonPressEventHandler | ||
| ) | 
Constructor for ButtonMonitor.
| controller | Controller to monitor | 
| buttonIndex | Button to monitor | 
| ButtonPressEventHandler | Class that will handle buttonPresses | 
| ctre::phoenix::tasking::ButtonMonitor::ButtonMonitor | ( | const ButtonMonitor & | rhs | ) | 
This is able to copy another ButtonMonitor class.
      
  | 
  inlinevirtual | 
      
  | 
  virtual | 
Implements ctre::phoenix::tasking::ILoopable.
      
  | 
  virtual | 
Process every loop.
Implements ctre::phoenix::tasking::ILoopable.
      
  | 
  virtual | 
Do nothing on start.
Implements ctre::phoenix::tasking::ILoopable.
      
  | 
  virtual | 
Do nothing on stop.
Implements ctre::phoenix::tasking::ILoopable.
      
  | 
  virtual | 
Call this every loop, it monitors for button presses.
Implements ctre::phoenix::tasking::IProcessable.