diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-16 14:06:16 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:29 -0500 |
commit | 4991bf5a1a72720e2f91e2b9e91cfc034c384436 (patch) | |
tree | dff41b5c71fa10c3fcc70d2bb8e9f6ddd8740a1b /libs/surfaces/push2/buttons.cc | |
parent | 96db13e1bad16b149d80ccbb11245d5cfa927f8c (diff) |
push2: working bidirectional communication, some transport control/display (LED only); some scrolling
Diffstat (limited to 'libs/surfaces/push2/buttons.cc')
-rw-r--r-- | libs/surfaces/push2/buttons.cc | 34 |
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 (); +} |