|
Omnidome
Fulldome Mapping Software Toolkit
|
Input controller controls which inputs are currently active Implemented as a singleton. More...
#include <Controller.h>

Public Member Functions | |
| bool | isActive (input::Interface *) const |
| int | activeCount (input::Interface *) const |
| void | add (input::Interface *) |
| void | remove (input::Interface *) |
| void | activate (input::Interface *) |
| Activate input. More... | |
| void | deactivate (input::Interface *) |
| Deactivate input. More... | |
Static Public Member Functions | |
| static Controller * | instance () |
Private Member Functions | |
| Controller () | |
| ~Controller () | |
Private Attributes | |
| std::unordered_map < input::Interface *, int > | usage_ |
Static Private Attributes | |
| static Controller * | instance_ = nullptr |
Input controller controls which inputs are currently active Implemented as a singleton.
| void omni::input::Controller::activate | ( | input::Interface * | _input | ) |
Activate input.
Increment usage count
| int omni::input::Controller::activeCount | ( | input::Interface * | _input | ) | const |
| void omni::input::Controller::add | ( | input::Interface * | _input | ) |
| void omni::input::Controller::deactivate | ( | input::Interface * | _input | ) |
Deactivate input.
|
static |
| bool omni::input::Controller::isActive | ( | input::Interface * | _input | ) | const |
| void omni::input::Controller::remove | ( | input::Interface * | _input | ) |
|
staticprivate |
|
private |
1.8.6