Hello.
Attached is a patch that allows for multiple controller buttons/controls
to be mapped to the same Mixxx control (useful for scripting.)
Sincerely,
Sean M. Pappalardo
<<--------------------------------------------------------------------------------->>
This E-Mail message has been scanned for viruses
and cleared by >>SmartMail<< from Smarter Technology, Inc.
<<--------------------------------------------------------------------------------->>
Index: src/configobject.cpp
===================================================================
--- src/configobject.cpp (revision 2447)
+++ src/configobject.cpp (working copy)
@@ -490,7 +490,8 @@
// Search for key in list, and set value if found
ConfigOption<ValueType> *it;
for (it = list.first(); it; it = list.next())
- if (it->key->group == k.group & it->key->item == k.item)
+ if (QString::compare(it->val->value, v.value, Qt::CaseInsensitive) ==
0)
+// if (it->key->group == k.group & it->key->item == k.item)
{
//qDebug() << "set found." << group << "," << item;
//cout << "1: " << v.value << "\n";
@@ -535,18 +536,18 @@
ConfigOption<ValueType> *it;
for (it = list.first(); it; it = list.next())
{
- if (QString::compare(it->val->value, v.value,
Qt::CaseInsensitive) == 0){
- // qDebug() << "#534: QString::compare match for " <<
it->key->group << it->key->item;
+ if (QString::compare(it->val->value, v.value, Qt::CaseInsensitive) ==
0){
+ //qDebug() << "ConfigObject #534: QString::compare match for " <<
it->key->group << it->key->item;
return it->key;
- }
+ }
if (((ValueType)*it->val) == ((ValueType)v))
{
- // qDebug() << "match" << it->val->value.toUpper() << "with" <<
v.value.toUpper();
+ //qDebug() << "ConfigObject: match" << it->val->value.toUpper() <<
"with" << v.value.toUpper();
return it->key;
}
if (it == list.getLast()) {
- // qDebug() << "last match attempted" << it->val->value.toUpper()
<< "with" << v.value.toUpper();
+ //qDebug() << "ConfigObject: last match attempted" <<
it->val->value.toUpper() << "with" << v.value.toUpper();
}
}
qDebug() << "No match for ConfigObject:" << v.value;
------------------------------------------------------------------------------
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel