CTRE Phoenix C++ 5.33.1
ctre::phoenix::tasking::ButtonMonitor::IButtonPressEventHandler Class Referenceabstract

Interface for classes that handle button events. More...

#include <ctre/phoenix/tasking/ButtonMonitor.h>

Public Member Functions

virtual ~IButtonPressEventHandler ()
 
virtual void OnButtonPress (int idx, bool isDown)=0
 Method to execute when a button is pressed. More...
 

Detailed Description

Interface for classes that handle button events.

Constructor & Destructor Documentation

◆ ~IButtonPressEventHandler()

virtual ctre::phoenix::tasking::ButtonMonitor::IButtonPressEventHandler::~IButtonPressEventHandler ( )
inlinevirtual

Member Function Documentation

◆ OnButtonPress()

virtual void ctre::phoenix::tasking::ButtonMonitor::IButtonPressEventHandler::OnButtonPress ( int  idx,
bool  isDown 
)
pure virtual

Method to execute when a button is pressed.

Parameters
idxIndex of button pressed
isDownWhether the button is down or not

The documentation for this class was generated from the following file: