|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
#include <abstractButton.hpp>
Public Member Functions | |
| virtual | ~AbstractButton () |
| virtual bool | isPressed ()=0 |
| Return whether the button is currently pressed. | |
| virtual bool | changed ()=0 |
| Return whether the state of the button changed since the last time this method was called. | |
| virtual bool | changedToPressed ()=0 |
| Return whether the state of the button changed to being pressed since the last time this method was called. | |
| virtual bool | changedToReleased ()=0 |
| Return whether the state of the button to being not pressed changed since the last time this method was called. | |
| virtual bool | controllerGet () override |
| Get the sensor value for use in a control loop. | |
Definition at line 11 of file abstractButton.hpp.
|
virtual |
|
pure virtual |
Return whether the state of the button changed since the last time this method was called.
Implemented in okapi::ButtonBase.
|
pure virtual |
Return whether the state of the button changed to being pressed since the last time this method was called.
Implemented in okapi::ButtonBase.
|
pure virtual |
Return whether the state of the button to being not pressed changed since the last time this method was called.
Implemented in okapi::ButtonBase.
|
overridevirtual |
Get the sensor value for use in a control loop.
This method might be automatically called in another thread by the controller.
Implements okapi::ControllerInput< bool >.
|
pure virtual |
Return whether the button is currently pressed.
Implemented in okapi::ButtonBase.