DS - fixes to dsm importer, add mnemonics for LidOpen and LidClose

This commit is contained in:
adelikat 2020-03-28 17:45:48 -05:00
parent cea0e80637
commit a072879dca
2 changed files with 6 additions and 2 deletions

View File

@ -422,7 +422,8 @@ namespace BizHawk.Client.Common
},
["NDS"] = new Dictionary<string, char>
{
["Lid"] = 'P',
["LidOpen"] = 'o',
["LidClose"] = 'c',
["Touch"] = 'T'
},
["O2"] = new Dictionary<string, char>

View File

@ -88,7 +88,7 @@ namespace BizHawk.Client.Common
BoolButtons =
{
"Right", "Left", "Down", "Up", "Start", "Select",
"B", "A", "X", "Y", "L", "R", "Touch", "LidOpen", "LidClose"
"B", "A", "X", "Y", "L", "R", "LidOpen", "LidClose", "Touch"
}
}
};
@ -98,6 +98,9 @@ namespace BizHawk.Client.Common
controller.Definition.FloatControls.Add("TouchY");
controller.Definition.FloatRanges.Add(new ControllerDefinition.AxisRange(0, 96, 191));
controller["LidOpen"] = false;
controller["LidOpen"] = false;
string[] sections = line.Split(new[] {'|'}, StringSplitOptions.RemoveEmptyEntries);
if (sections.Length > 0)
{