#include <ToggleAction.hpp>
Inheritance diagram for vrvis::ToggleAction:
Public Member Functions | |
ToggleAction (bool &rToggleVar) | |
Constructor that takes a reference to the value to be toggled. | |
~ToggleAction (void) | |
Destructor. | |
virtual void | execute (const gadget::Digital::State cButtonState) |
Toggle the toggle value. |
|
Constructs a ToggleAction for a given boolean value.
|
|
Destructor. |
|
On release of the assigned button, the boolean value that this Action references, is toggled.
Implements vrvis::DigitalAction.
|