MCP: redesign to allow device-specific button IDs, since we know that at least one...
[ardour.git] / libs / surfaces / mackie / fader.h
1 #ifndef __ardour_mackie_control_protocol_fader_h__
2 #define __ardour_mackie_control_protocol_fader_h__
3
4 #include "controls.h"
5
6 namespace Mackie {
7
8 class Fader : public Control
9 {
10   public:
11         Fader (int id, std::string name, Group & group)
12                 : Control (id, name, group)
13                 , position (0.0)
14         {
15         }
16
17         MidiByteArray set_position (float);
18         MidiByteArray zero() { return set_position (0.0); }
19         
20         MidiByteArray update_message ();
21
22         static Control* factory (Surface&, int id, const char*, Group&);
23         
24   private:
25         float position;
26 };
27
28 }
29
30 #endif