2012-04-22 13:37:52 -04:00
|
|
|
#ifndef mackie_jog_wheel
|
|
|
|
#define mackie_jog_wheel
|
|
|
|
|
|
|
|
#include "timer.h"
|
|
|
|
|
|
|
|
#include <stack>
|
|
|
|
#include <deque>
|
|
|
|
#include <queue>
|
|
|
|
|
2015-04-15 20:37:20 -04:00
|
|
|
namespace ArdourSurface {
|
|
|
|
|
2012-04-22 13:37:52 -04:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2015-04-15 20:37:20 -04:00
|
|
|
}
|
2012-04-22 13:37:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|