- improvement - mouse mappings in kbd entries in defaultProfile are collected as mouse now and allowed to map
- improvement - removed some unneeded tree scans - to speed things up
- update - doc SCJMapper_QGuide V2.30beta.pdf
Dictionary<String,ActionMap>m_aMap=null;// key would be the actionmap name
Dictionary<string,ActionMap>m_aMap=null;// key would be the actionmap name
ActionMapm_currentMap=null;
@ -96,18 +96,18 @@ namespace SCJMapper_V2.SC
/// Returns the collected actionmaps as CSV (same format as MappingVars)
/// i.e. one line per actionmap where the first element is the actionmap and following are actions;defaultBinding lead by the input Key in uppercase (JKXP)
/// </summary>
publicString CSVMap
publicstring CSVMap
{
get{
log.Debug("DProfileReader.CSVMap - Entry");
String buf="";
string buf="";
foreach(ActionMapaminm_aMap.Values){
buf+=am.name+";";
foreach(ProfileActionainam){
buf+=a.keyName+";"+a.defBinding+";"+a.defActivationMode.Name+";"+a.defActivationMode.MultiTap.ToString()+";";// add default binding + activation mode to the CSV
}
buf+=String.Format("\n");
buf+=string.Format("\n");
}
returnbuf;
}
@ -150,7 +150,7 @@ namespace SCJMapper_V2.SC
if(ac.defBinding==" "){
ac.defBinding=Joystick.JoystickCls.BlendedInput;
m_currentMap.Add(ac);// finally add it to the current map if it was bound
}elseif(!String.IsNullOrEmpty(ac.defBinding)){
}elseif(!string.IsNullOrEmpty(ac.defBinding)){
ac.defBinding="js1_"+ac.defBinding;
m_currentMap.Add(ac);// finally add it to the current map if it was bound
}
@ -165,7 +165,7 @@ namespace SCJMapper_V2.SC
if(ac.defBinding==" "){
ac.defBinding=Keyboard.KeyboardCls.BlendedInput;
m_currentMap.Add(ac);// finally add it to the current map if it was bound
}elseif(!String.IsNullOrEmpty(ac.defBinding)){
}elseif(!string.IsNullOrEmpty(ac.defBinding)){
ac.defBinding="kb1_"+ac.defBinding;
m_currentMap.Add(ac);// finally add it to the current map if it was bound
}
@ -180,7 +180,7 @@ namespace SCJMapper_V2.SC
if(ac.defBinding==" "){
ac.defBinding=Mouse.MouseCls.BlendedInput;
m_currentMap.Add(ac);// finally add it to the current map if it was bound
}elseif(!String.IsNullOrEmpty(ac.defBinding)){
}elseif(!string.IsNullOrEmpty(ac.defBinding)){
ac.defBinding="mo1_"+ac.defBinding;
m_currentMap.Add(ac);// finally add it to the current map if it was bound
}
@ -195,7 +195,7 @@ namespace SCJMapper_V2.SC
if(ac.defBinding==" "){
ac.defBinding=Gamepad.GamepadCls.BlendedInput;
m_currentMap.Add(ac);// finally add it to the current map if it was bound
}elseif(!String.IsNullOrEmpty(ac.defBinding)){
}elseif(!string.IsNullOrEmpty(ac.defBinding)){
ac.defBinding="xi1_"+ac.defBinding;
m_currentMap.Add(ac);// finally add it to the current map if it was bound
}
@ -214,10 +214,10 @@ namespace SCJMapper_V2.SC
/// </summary>
/// <param name="xr">An XML reader @ StartElement</param>
/// <returns>True if reading can continue</returns>