VEX V5 C++ API
Public Member Functions | List of all members
vex::controller::button Class Reference

Use the button class to get values from the controller's buttons. More...

Public Member Functions

 button ()
 
 button (const tButtonType id, controller *parent)
 
 ~button ()
 
bool pressing (void)
 Gets the status of a button. More...
 

Detailed Description

Use the button class to get values from the controller's buttons.

Constructor & Destructor Documentation

◆ button() [1/2]

vex::controller::button::button ( )
inline

◆ button() [2/2]

vex::controller::button::button ( const tButtonType  id,
controller parent 
)
inline

◆ ~button()

vex::controller::button::~button ( )
inline

Member Function Documentation

◆ pressing()

bool vex::controller::button::pressing ( void  )

Gets the status of a button.

Returns
Returns a Boolean value based on the pressed states of the button. If the button is pressed it will return true.