summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/mcp_buttons.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-02-01 12:22:01 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-01 12:22:01 -0500
commitca813315bfc3536b42ceb7075c8e7eb4727ac678 (patch)
tree4bac47c5507bbc106251c740cbc0a064cd5cd0cf /libs/surfaces/mackie/mcp_buttons.cc
parent5eccbbfbd6d27941c7543cfd597fe9f52a3dcaad (diff)
mackie: add new bindings for Save,Undo,Cancel,Enter
these now control punch in, punch out, external sync and follow edits, respectively
Diffstat (limited to 'libs/surfaces/mackie/mcp_buttons.cc')
-rw-r--r--libs/surfaces/mackie/mcp_buttons.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/libs/surfaces/mackie/mcp_buttons.cc b/libs/surfaces/mackie/mcp_buttons.cc
index ff1b85874f..2c385ccae4 100644
--- a/libs/surfaces/mackie/mcp_buttons.cc
+++ b/libs/surfaces/mackie/mcp_buttons.cc
@@ -372,14 +372,14 @@ MackieControlProtocol::drop_release (Button &)
LedState
MackieControlProtocol::save_press (Button &)
{
- session->save_state ("");
- return on;
+ toggle_punch_in ();
+ return none;
}
LedState
MackieControlProtocol::save_release (Button &)
{
- return off;
+ return none;
}
LedState
@@ -573,14 +573,14 @@ MackieControlProtocol::clicking_release (Button &)
LedState
MackieControlProtocol::enter_press (Button &)
{
- Enter(); /* EMIT SIGNAL */
- return off;
+ access_action ("Transport/ToggleFollowEdits");
+ return none;
}
LedState
MackieControlProtocol::enter_release (Button &)
{
- return off;
+ return none;
}
LedState
@@ -773,12 +773,13 @@ MackieControlProtocol::touch_release (Button &)
LedState
MackieControlProtocol::cancel_press (Button &)
{
- return off;
+ access_action ("Transport/ToggleExternalSync");
+ return none;
}
LedState
MackieControlProtocol::cancel_release (Button &)
{
- return off;
+ return none;
}
LedState
MackieControlProtocol::user_a_press (Button &)