summaryrefslogtreecommitdiff
path: root/libs/surfaces/push2/buttons.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaces/push2/buttons.cc')
-rw-r--r--libs/surfaces/push2/buttons.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/libs/surfaces/push2/buttons.cc b/libs/surfaces/push2/buttons.cc
new file mode 100644
index 0000000000..1db04f486e
--- /dev/null
+++ b/libs/surfaces/push2/buttons.cc
@@ -0,0 +1,34 @@
+#include "ardour/session.h"
+
+#include "push2.h"
+
+using namespace ArdourSurface;
+
+void
+Push2::button_play ()
+{
+ if (session->transport_rolling ()) {
+ transport_stop ();
+ } else {
+ transport_play ();
+ }
+}
+
+void
+Push2::button_recenable ()
+{
+ std::cerr << "RE toggle\n";
+ rec_enable_toggle ();
+}
+
+void
+Push2::button_up ()
+{
+ scroll_up_1_track ();
+}
+
+void
+Push2::button_down ()
+{
+ scroll_dn_1_track ();
+}