VEX IQ 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 (const tButtonType id)
 
 ~button ()
 
bool pressing ()
 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()

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

◆ ~button()

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

Member Function Documentation

◆ pressing()

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

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.