mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
MCP: work on vpots
git-svn-id: svn://localhost/ardour2/branches/3.0@11992 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e3d353715a
commit
b5276aa4ab
1 changed files with 12 additions and 10 deletions
|
|
@ -440,21 +440,23 @@ Strip::vselect_event (Button& button, ButtonState bs)
|
||||||
{
|
{
|
||||||
if (bs == press) {
|
if (bs == press) {
|
||||||
|
|
||||||
boost::shared_ptr<AutomationControl> ac = button.control ();
|
|
||||||
|
|
||||||
if (ac) {
|
int ms = _surface->mcp().modifier_state();
|
||||||
|
|
||||||
int ms = _surface->mcp().modifier_state();
|
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
|
||||||
|
boost::shared_ptr<AutomationControl> ac = button.control ();
|
||||||
|
|
||||||
|
if (ac) {
|
||||||
|
|
||||||
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
|
|
||||||
/* reset to default/normal value */
|
/* reset to default/normal value */
|
||||||
ac->set_value (ac->normal());
|
ac->set_value (ac->normal());
|
||||||
|
|
||||||
} else {
|
|
||||||
DEBUG_TRACE (DEBUG::MackieControl, "switching to next pot mode\n");
|
|
||||||
next_pot_mode ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
DEBUG_TRACE (DEBUG::MackieControl, "switching to next pot mode\n");
|
||||||
|
next_pot_mode ();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue