V2.17- final, final - needed to fix activation mode with a multitap addition ???!!! CIG ....

pull/104/head v2.17beta
bm98 9 years ago
parent 54a22f89b8
commit 44be6e0b57

@ -145,6 +145,21 @@ namespace SCJMapper_V2
return newAc;
}
/// <summary>
/// Strange behavior of SC - needs a proper multitap to accept ActivationModes
/// </summary>
/// <param name="actMode"></param>
/// <returns></returns>
private String MutitapFudge( string actMode )
{
// guesswork - if the activation mode name contains double we assume a double tap thing
if ( actMode.ToLowerInvariant( ).Contains( "double" ) ) {
return "multitap = \"2\"";
}
else {
return "multitap = \"1\"";
}
}
/// <summary>
/// Dump the action as partial XML nicely formatted
@ -157,10 +172,10 @@ namespace SCJMapper_V2
// regular - apply XML formatting to internally blended items
r += String.Format( "input=\"{0}_{1}\" ", DevID, DeviceCls.toXML( Input ) );
if ( ActivationMode != ActivationModes.Default ) {
r += String.Format( "ActivationMode=\"{0}\" ", ActivationMode );
r += String.Format( "ActivationMode=\"{0}\" {1} ", ActivationMode, MutitapFudge(ActivationMode) );
}
}
r += String.Format( " />\n" ); // actually an ERROR...
r += String.Format( " />\n" );
return r;
}

Loading…
Cancel
Save