diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-11 04:02:46 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-11 04:02:46 +0000 |
commit | 7c9c4d6dc746604eac95d0ee767a9b9f2795366e (patch) | |
tree | 394c74f26eccae161db113498ae6a180d9ca9373 /libs/surfaces/mackie/button.h | |
parent | 722defe41a6119cfe6e9f5a66fdcb2408c12a455 (diff) |
MCP: breakout Led class code; remove builder code for Led changes and put it into Led::set_state() which returns the (possibly empty) MIDI data needed to go back to the MCP device to change the LED visible state
git-svn-id: svn://localhost/ardour2/branches/3.0@11886 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/button.h')
-rw-r--r-- | libs/surfaces/mackie/button.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/button.h b/libs/surfaces/mackie/button.h index 03a8bfd883..4e624aba75 100644 --- a/libs/surfaces/mackie/button.h +++ b/libs/surfaces/mackie/button.h @@ -101,10 +101,12 @@ public: : Control (id, name, group) , _led (id, name + "_led", group) {} - virtual const Led & led() const { return _led; } + virtual Led & led() { return _led; } virtual type_t type() const { return type_button; }; + MidiByteArray update_message () const; + static Control* factory (Surface&, int id, const char*, Group&); private: |