![]() |
VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
|
Use the button class to get values from the brain's buttons. More...
#include <vex_brain.h>
Public Member Functions | |
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.
|
inline |
Definition at line 55 of file vex_brain.h.
|
inline |
Definition at line 56 of file vex_brain.h.
|
inline |
Definition at line 57 of file vex_brain.h.
void vex::brain::button::pressed | ( | void(* | callback )(void) | ) |
Sets the function to be called when the button is pressed.
callback | A reference to a function. |
bool vex::brain::button::pressing | ( | void | ) |
Sets the function to be called when the button is released.
callback | A reference to a function. |
void vex::brain::button::released | ( | void(* | callback )(void) | ) |
Sets the function to be called when the button is released.
callback | A reference to a function. |