Use the button class to get values from the brain's buttons.
More...
#include <vex_brain.h>
|
| | button (const int id) |
| |
| void | pressed (void(*callback)(void)) |
| | Sets the function to be called when the button is pressed.
|
| |
| void | released (void(*callback)(void)) |
| | Sets the function to be called when the button is released.
|
| |
| bool | pressing (void) |
| | Sets the function to be called when the button is released.
|
| |
Use the button class to get values from the brain's buttons.
Definition at line 50 of file vex_brain.h.
◆ button() [1/2]
| vex::brain::button::button |
( |
| ) |
|
|
inline |
◆ button() [2/2]
| vex::brain::button::button |
( |
const int | id | ) |
|
|
inline |
◆ ~button()
| vex::brain::button::~button |
( |
| ) |
|
|
inline |
◆ pressed()
| void vex::brain::button::pressed |
( |
void(* | callback )(void) | ) |
|
Sets the function to be called when the button is pressed.
- Parameters
-
| callback | A reference to a function. |
◆ pressing()
| bool vex::brain::button::pressing |
( |
void | | ) |
|
Sets the function to be called when the button is released.
- Parameters
-
| callback | A reference to a function. |
◆ released()
| void vex::brain::button::released |
( |
void(* | callback )(void) | ) |
|
Sets the function to be called when the button is released.
- Parameters
-
| callback | A reference to a function. |
The documentation for this class was generated from the following file: