diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2019-10-20 22:24:17 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2019-10-20 22:24:32 -0500 |
commit | b96d8e7ffa51fcb25511cd02260ec256d181d3b6 (patch) | |
tree | a93afdaf9c7d890dfded9667db8da70e6512afd5 /libs/surfaces/mackie/device_info.cc | |
parent | 92173ca1185904c2aea7ba081667cf59989958f7 (diff) |
Add support for single-fader MCU devices: XTouch One and RuCo. (needs testing)
Diffstat (limited to 'libs/surfaces/mackie/device_info.cc')
-rw-r--r-- | libs/surfaces/mackie/device_info.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/device_info.cc b/libs/surfaces/mackie/device_info.cc index a9b7d9d0d5..c085aea812 100644 --- a/libs/surfaces/mackie/device_info.cc +++ b/libs/surfaces/mackie/device_info.cc @@ -62,6 +62,7 @@ DeviceInfo::DeviceInfo() , _is_qcon(false) , _has_meters (true) , _has_separate_meters (false) + , _single_fader_follows_selection (false) , _device_type (MCU) , _name (X_("Mackie Control Universal Pro")) { @@ -254,6 +255,8 @@ DeviceInfo::set_state (const XMLNode& node, int /* version */) if (!child->get_property ("value", _strip_cnt)) { _strip_cnt = 8; } + if (_strip_cnt==1) + _single_fader_follows_selection = true; } else { return -1; } @@ -425,6 +428,12 @@ DeviceInfo::has_meters() const } bool +DeviceInfo::single_fader_follows_selection() const +{ + return _single_fader_follows_selection; +} + +bool DeviceInfo::has_separate_meters() const { return _has_separate_meters; |