diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2016-02-04 11:17:45 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2016-02-04 11:17:45 -0600 |
commit | 1b5931a028e996645bbbc119328a605c0e0b0e5a (patch) | |
tree | eb41541eecdffeb32b68d4b9a6aad6194e0b2d04 /libs/surfaces | |
parent | dbb48bfff9919e9786f1cdf54edabff0e073d1fd (diff) |
Mackie Protocol: fixes for aac6a5
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/mackie/mcp_buttons.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/mcp_buttons.cc b/libs/surfaces/mackie/mcp_buttons.cc index 8eeb758ef3..88b05a3a24 100644 --- a/libs/surfaces/mackie/mcp_buttons.cc +++ b/libs/surfaces/mackie/mcp_buttons.cc @@ -362,6 +362,7 @@ MackieControlProtocol::drop_press (Button &) { if (main_modifier_state() == MODIFIER_SHIFT) { toggle_punch_in(); + return session->config.get_punch_in() ? flashing : off; } else { access_action ("Editor/start-range-from-playhead"); } @@ -438,6 +439,9 @@ MackieControlProtocol::marker_release (Button &) { _modifier_state &= ~MODIFIER_MARKER; + if (main_modifier_state() & MODIFIER_SHIFT) + return off; //if shift was held, we already did the action + if (marker_modifier_consumed_by_button) { /* marker was used a modifier for some other button(s), so do nothing @@ -1073,6 +1077,7 @@ MackieControlProtocol::replace_press (Mackie::Button&) { if (main_modifier_state() == MODIFIER_SHIFT) { toggle_punch_out(); + return session->config.get_punch_out() ? flashing : off; } else { access_action ("Editor/finish-range-from-playhead"); } |