_controls.push_back (&control);
}
-Control::Control (int id, int ordinal, std::string name, Group & group)
+Control::Control (int id, std::string name, Group & group)
: _id (id)
- , _ordinal (ordinal)
, _name (name)
, _group (group)
, _in_use (false)
os << ", ";
os << "raw_id: " << "0x" << setw(2) << setfill('0') << hex << control.raw_id() << setfill(' ');
os << ", ";
- os << "ordinal: " << dec << control.ordinal();
- os << ", ";
os << "group: " << control.group().name();
os << " }";
}
Control*
-Pot::factory (Surface& surface, int id, int ordinal, const char* name, Group& group)
+Pot::factory (Surface& surface, int id, const char* name, Group& group)
{
- Pot* p = new Pot (id, ordinal, name, group);
+ Pot* p = new Pot (id, name, group);
surface.pots[id] = p;
surface.controls.push_back (p);
group.add (*p);
}
Control*
-Led::factory (Surface& surface, int id, int ordinal, const char* name, Group& group)
-{
- Led* l = new Led (id, ordinal, name, group);
- surface.leds[id] = l;
- surface.controls.push_back (l);
- group.add (*l);
- return l;
-}
-
-Control*
-Jog::factory (Surface& surface, int id, int ordinal, const char* name, Group& group)
+Jog::factory (Surface& surface, int id, const char* name, Group& group)
{
- Jog* j = new Jog (id, ordinal, name, group);
+ Jog* j = new Jog (id, name, group);
surface.controls.push_back (j);
surface.controls_by_name["jog"] = j;
group.add (*j);