1 #include <msp/core/maputils.h>
3 #include "controlscheme.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 map<string, Control *>::const_iterator i = controls.find(name);
23 return (i!=controls.end() ? i->second : 0);
26 void ControlScheme::reset_edges()
28 for(map<string, Control *>::const_iterator i=controls.begin(); i!=controls.end(); ++i)
29 i->second->reset_edges();