summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/jog_wheel.h
blob: f54e3efeb310a3a46fbcef601cb925b0932d600e (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
35
36
37
#ifndef mackie_jog_wheel
#define mackie_jog_wheel

#include "timer.h"

#include <stack>
#include <deque>
#include <queue>

namespace ArdourSurface {

class MackieControlProtocol;

namespace Mackie
{

class JogWheel
{
  public:
	enum Mode { scroll };

	JogWheel (MackieControlProtocol & mcp);

	/// As the wheel turns...
	void jog_event (float delta);
	void set_mode (Mode m);
	Mode mode() const { return _mode; }

private:
	MackieControlProtocol & _mcp;
	Mode _mode;
};

}
}

#endif