13
0

MCP: shift-select resets gain to unity

git-svn-id: svn://localhost/ardour2/branches/3.0@11856 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-09 17:56:20 +00:00
parent db5258fea3
commit 0431309f89

View File

@ -491,8 +491,13 @@ MackieControlProtocol::handle_strip_button (SurfacePort & port, Control & contro
} else if (control.name() == "select") {
Strip* strip = const_cast<Strip*>(dynamic_cast<const Strip*>(&control.group()));
if (strip) {
if ((uint32_t) strip->index() < route_table.size()) {
boost::shared_ptr<Route> r = route_table[strip->index()];
if (_modifier_state == MODIFIER_SHIFT) {
r->gain_control()->set_value (0.0);
} else {
if (r->remote_control_id() == _current_selected_track) {
UnselectTrack (); /* EMIT SIGNAL */
_current_selected_track = -1;
@ -502,6 +507,7 @@ MackieControlProtocol::handle_strip_button (SurfacePort & port, Control & contro
}
}
}
}
} else if (control.name() == "vselect") {
// TODO could be used to select different things to apply the pot to?
//state = default_button_press (dynamic_cast<Button&> (control));