Make Mackie control surface LEDs for modifier keys only light while pressed. (fixes...
[ardour.git] / libs / surfaces / mackie / led.h
index 47ea2adfa02605f5082b4946a5fbcc2a2b24d0ee..8361c4bb8df9d0d44ee86a021ce83e50903deeee 100644 (file)
 #include "midi_byte_array.h"
 #include "types.h"
 
+namespace ArdourSurface {
+
 namespace Mackie {
 
 class Led : public Control
 {
 public:
+       static const int FaderTouch;
+       static const int Timecode;
+       static const int Beats;
+       static const int RudeSolo;
+       static const int RelayClick;
+
        Led (int id, std::string name, Group & group)
                : Control (id, name, group)
                , state (off)
@@ -36,8 +44,9 @@ public:
        }
        
        Led & led() { return *this; }
-       type_t type() const { return type_led; }
        MidiByteArray set_state (LedState);
+
+       MidiByteArray zero() { return set_state (off); }
        
        static Control* factory (Surface&, int id, const char*, Group&);
 
@@ -45,6 +54,7 @@ public:
        LedState state;
 };
 
+}
 }
 
 #endif /* __ardour_mackie_control_protocol_led_h__ */