summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/device_info.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-12 18:36:14 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-12 18:36:14 +0000
commitb4235221abb9708424b3baa1068e1e70765aa989 (patch)
tree40aa83eec1d81c7a21ee3028af4cdd1145678e62 /libs/surfaces/mackie/device_info.cc
parent5ee1aaf8d0ad2b08398ed51aa21466877dbbb32d (diff)
remove old mcp config params, use new one
git-svn-id: svn://localhost/ardour2/branches/3.0@11948 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/device_info.cc')
-rw-r--r--libs/surfaces/mackie/device_info.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/device_info.cc b/libs/surfaces/mackie/device_info.cc
index 88ea659fdf..d2eaf9f279 100644
--- a/libs/surfaces/mackie/device_info.cc
+++ b/libs/surfaces/mackie/device_info.cc
@@ -47,6 +47,7 @@ DeviceInfo::DeviceInfo()
, _has_timecode_display (true)
, _has_global_controls (true)
, _has_jog_wheel (true)
+ , _has_touch_sense_faders (true)
, _name (X_("Mackie Control Universal Pro"))
{
@@ -128,6 +129,12 @@ DeviceInfo::set_state (const XMLNode& node, int /* version */)
}
}
+ if ((child = node.child ("TouchSenseFaders")) != 0) {
+ if ((prop = child->property ("value")) != 0) {
+ _has_touch_sense_faders = string_is_affirmative (prop->value());
+ }
+ }
+
return 0;
}
@@ -185,6 +192,12 @@ DeviceInfo::has_jog_wheel () const
return _has_jog_wheel;
}
+bool
+DeviceInfo::has_touch_sense_faders () const
+{
+ return _has_touch_sense_faders;
+}
+
static const char * const devinfo_env_variable_name = "ARDOUR_MCP_DEVINFO_PATH";
static const char* const devinfo_dir_name = "mcp_devices";
static const char* const devinfo_suffix = ".xml";