32 myDetector(det), mySet(set)
49 if (key.size() == 1) {
51 if (
'a' <= c && c <=
'z') {
53 hotkey = c + FX::KEY_space -
' ';
#define WRITE_WARNINGF(...)
Set/unsets inductionloop override.
SUMOTime execute(SUMOTime currentTime)
toggles override
~Command_Hotkey_InductionLoop()
Destructor.
Command_Hotkey_InductionLoop(MSInductLoop *det, bool set)
Constructor.
bool mySet
whether the override shall be set or reset
MSInductLoop * myDetector
The detector to be manipulated.
static bool registerHotkey(const std::string &key, MSInductLoop *det)
register hotkey actions
A MSNet extended by some values for usage within the gui.
void addHotkey(int key, Command *press, Command *release=nullptr)
register custom hotkey action
An unextended detector measuring at a fixed position on a fixed lane.
void overrideTimeSinceDetection(double time)
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).