DS - fixes to dsm importer, add mnemonics for LidOpen and LidClose
This commit is contained in:
parent
cea0e80637
commit
a072879dca
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue