#include <buttonBase.hpp>
|
| | ButtonBase (bool iinverted=false) |
| |
| bool | isPressed () override |
| | Return whether the button is currently pressed.
|
| |
| bool | changed () override |
| | Return whether the state of the button changed since the last time this method was called.
|
| |
| bool | changedToPressed () override |
| | Return whether the state of the button changed to pressed since the last time this method was called.
|
| |
| bool | changedToReleased () override |
| | Return whether the state of the button to not pressed since the last time this method was called.
|
| |
| virtual | ~AbstractButton () |
| |
| virtual bool | controllerGet () override |
| | Get the sensor value for use in a control loop.
|
| |
Definition at line 11 of file buttonBase.hpp.
◆ ButtonBase()
| okapi::ButtonBase::ButtonBase |
( |
bool |
iinverted = false | ) |
|
|
explicit |
- Parameters
-
| iinverted | Whether the button is inverted (true meaning default pressed and false meaning default not pressed). |
◆ changed()
| bool okapi::ButtonBase::changed |
( |
| ) |
|
|
overridevirtual |
Return whether the state of the button changed since the last time this method was called.
Implements okapi::AbstractButton.
◆ changedToPressed()
| bool okapi::ButtonBase::changedToPressed |
( |
| ) |
|
|
overridevirtual |
Return whether the state of the button changed to pressed since the last time this method was called.
Implements okapi::AbstractButton.
◆ changedToReleased()
| bool okapi::ButtonBase::changedToReleased |
( |
| ) |
|
|
overridevirtual |
Return whether the state of the button to not pressed since the last time this method was called.
Implements okapi::AbstractButton.
◆ currentlyPressed()
| virtual bool okapi::ButtonBase::currentlyPressed |
( |
| ) |
|
|
protectedpure virtual |
◆ isPressed()
| bool okapi::ButtonBase::isPressed |
( |
| ) |
|
|
overridevirtual |
◆ inverted
| bool okapi::ButtonBase::inverted {false} |
|
protected |
◆ wasPressedLast_c
| bool okapi::ButtonBase::wasPressedLast_c {false} |
|
protected |
◆ wasPressedLast_ctp
| bool okapi::ButtonBase::wasPressedLast_ctp {false} |
|
protected |
◆ wasPressedLast_ctr
| bool okapi::ButtonBase::wasPressedLast_ctr {false} |
|
protected |
The documentation for this class was generated from the following file: