summaryrefslogtreecommitdiff
path: root/libs/surfaces/push2/buttons.cc
blob: 1db04f486e91755103013fd4a86f292657f4f81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 ();
}