mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Console1: Add plugin interface
This commit is contained in:
parent
f1bb18ae53
commit
835598c802
6 changed files with 405 additions and 6 deletions
|
|
@ -45,10 +45,13 @@ class ControllerButton : public Controller
|
|||
ControllerButton (Console1& console1,
|
||||
ControllerID id,
|
||||
boost::function<void (uint32_t)> action,
|
||||
boost::function<void (uint32_t)> shift_action = 0)
|
||||
boost::function<void (uint32_t)> shift_action = 0,
|
||||
boost::function<void (uint32_t)> plugin_action = 0
|
||||
)
|
||||
: Controller (console1, id)
|
||||
, action (action)
|
||||
, shift_action (shift_action)
|
||||
, plugin_action (plugin_action)
|
||||
{
|
||||
console1.buttons.insert (std::make_pair (id, *this));
|
||||
}
|
||||
|
|
@ -78,6 +81,7 @@ class ControllerButton : public Controller
|
|||
}
|
||||
boost::function<void (uint32_t)> action;
|
||||
boost::function<void (uint32_t)> shift_action;
|
||||
boost::function<void (uint32_t)> plugin_action;
|
||||
};
|
||||
|
||||
class MultiStateButton : public Controller
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue