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

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

Public Member Functions

 button (tFaceButtonType id)
 
 ~button ()
 
bool pressing (void)
 Gets the status of a button. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ button()

vex::brain::button::button ( tFaceButtonType  id)
inline

◆ ~button()

vex::brain::button::~button ( )
inline

Member Function Documentation

◆ pressing()

bool vex::brain::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.