okapi::ButtonBase class

Base classes

class AbstractButton

Derived classes

class ADIButton
class ControllerButton

Constructors, destructors, conversion operators

ButtonBase(bool iinverted = false) explicit

Public functions

auto isPressed() -> bool override
Return whether the button is currently pressed.
auto changed() -> bool override
Return whether the state of the button changed since the last time this method was called.
auto changedToPressed() -> bool override
Return whether the state of the button changed to pressed since the last time this method was called.
auto changedToReleased() -> bool override
Return whether the state of the button to not pressed since the last time this method was called.

Protected functions

auto currentlyPressed() -> bool pure virtual

Protected variables

bool inverted
bool wasPressedLast_c
bool wasPressedLast_ctp
bool wasPressedLast_ctr

Function documentation

okapi::ButtonBase::ButtonBase(bool iinverted = false) explicit

Parameters
iinverted Whether the button is inverted (true meaning default pressed and false meaning default not pressed).