1 #include "controlscheme.h"
2 #include <msp/core/maputils.h>
10 void ControlScheme::add(const string &name, Control &ctrl)
12 insert_unique(controls, name, &ctrl);
15 Control &ControlScheme::get(const string &name) const
17 return *get_item(controls, name);
20 Control *ControlScheme::find(const string &name) const
22 auto i = controls.find(name);
23 return (i!=controls.end() ? i->second : 0);
26 void ControlScheme::reset_edges()
28 for(const auto &kvp: controls)
29 kvp.second->reset_edges();