#include <ActionSet.hpp>
Public Member Functions | |
~ActionSet (void) | |
Destructor. | |
const std::string & | getName (void) |
Name accessor. | |
void | addAnalogAction (const std::string &crDeviceName, AnalogAction *pAction) |
Adds an AnalogAction to this ActionSet. | |
void | addDigitalAction (const std::string &crDeviceName, DigitalAction *pAction) |
Adds a DigitalAction to this ActionSet. | |
void | activateActions (void) |
Call each Action's activate() method. | |
void | deactivateActions (void) |
Call each Action's deactivate() method. | |
void | triggerAnalogEvent (gadget::AnalogInterface *pAnalog) |
Triggers the AnalogAction for the given device. | |
void | triggerDigitalEvent (gadget::DigitalInterface *pDigital) |
Triggers the DigitalAction for the given device. | |
Friends | |
ActionSet * | Input::createActionSet (const std::string &crName) |
Friend to construct ActionSet objects. |
|
Destructor. |
|
Call activate() method of all Actions in this ActionSet.
|
|
Adds an AnalogAction for a certain input device to this ActionSet. If this input device has already been added, the Action is overwritten. If no device with this name was configured, an error message is issued.
|
|
Adds an DigitalAction for a certain input device to this ActionSet. If this input device has already been added, the Action is overwritten. If no device with this name was configured, an error message is issued.
|
|
Call deactivate() method of all Actions in this ActionSet.
|
|
Accesses the name of this ActionSet.
|
|
Triggers the AnalogAction stored for the given analog input device. If no Action is set for this device, do nothing.
|
|
Triggers the DigitalAction stored for the given digital input device. If no Action is set for this device, do nothing.
|
|
|