mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
mackie: make group button (appear) to do something
This commit is contained in:
parent
9088944db2
commit
42fbb96674
3 changed files with 4 additions and 1 deletions
|
|
@ -123,6 +123,7 @@ MackieControlProtocol::MackieControlProtocol (Session& session)
|
||||||
, _initialized (false)
|
, _initialized (false)
|
||||||
, configuration_state (0)
|
, configuration_state (0)
|
||||||
, state_version (0)
|
, state_version (0)
|
||||||
|
, _group_on (false)
|
||||||
{
|
{
|
||||||
DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::MackieControlProtocol\n");
|
DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::MackieControlProtocol\n");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -355,6 +355,7 @@ class MackieControlProtocol
|
||||||
XMLNode* configuration_state;
|
XMLNode* configuration_state;
|
||||||
int state_version;
|
int state_version;
|
||||||
int _last_bank[9];
|
int _last_bank[9];
|
||||||
|
bool _group_on;
|
||||||
|
|
||||||
boost::shared_ptr<ArdourSurface::Mackie::Surface> _master_surface;
|
boost::shared_ptr<ArdourSurface::Mackie::Surface> _master_surface;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -985,7 +985,8 @@ MackieControlProtocol::grp_press (Mackie::Button&)
|
||||||
Mackie::LedState
|
Mackie::LedState
|
||||||
MackieControlProtocol::grp_release (Mackie::Button&)
|
MackieControlProtocol::grp_release (Mackie::Button&)
|
||||||
{
|
{
|
||||||
return none;
|
_group_on = !_group_on;
|
||||||
|
return _group_on;
|
||||||
}
|
}
|
||||||
Mackie::LedState
|
Mackie::LedState
|
||||||
MackieControlProtocol::nudge_press (Mackie::Button&)
|
MackieControlProtocol::nudge_press (Mackie::Button&)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue