Mackie Protocol: fixes for aac6a5
authorBen Loftis <ben@harrisonconsoles.com>
Thu, 4 Feb 2016 17:17:45 +0000 (11:17 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Thu, 4 Feb 2016 17:17:45 +0000 (11:17 -0600)
libs/surfaces/mackie/mcp_buttons.cc

index 8eeb758ef365367b0a7df45345b531a08a0d6c3b..88b05a3a24f54ee0735ecd81b87cbb46586df33a 100644 (file)
@@ -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");
        }