Derived version of ControllerButton.
More...
#include <ControllerHoldButton.h>
|
| unsigned char | lastFrameState = false |
| | char for tracking what the state of the button on the previous frame was. 1 = pushed, 0 = not pushed
|
| bool | currentlyPressed = false |
| | Bool shared with the outside world to indicate whether the button is currently pressed down or not.
|
Derived version of ControllerButton.
@ControllerHoldButton.h
◆ ControllerHoldButton()
| ControllerHoldButton::ControllerHoldButton |
( |
| ) |
|
◆ resetButton()
| auto ControllerHoldButton::resetButton |
( |
| ) |
->void |
|
overridevirtual |
◆ update()
| auto ControllerHoldButton::update |
( |
float | dt, |
|
|
unsigned char | buttonState )->void |
|
overridevirtual |
Upda.
- Parameters
-
| dt | How much time has passed since the last state |
| buttonState | The current state of a physical controller button |
- Returns
- If the button is pressed down or not
Reimplemented from ControllerButton.
◆ currentDelay
| float ControllerHoldButton::currentDelay |
|
private |
◆ fastDelay
| auto ControllerHoldButton::fastDelay = 0.1f |
|
staticconstexprprivate |
◆ initialDelay
| auto ControllerHoldButton::initialDelay = 0.5f |
|
staticconstexprprivate |
◆ isFast
| bool ControllerHoldButton::isFast = false |
|
private |
The documentation for this class was generated from the following files: