Support analog range up to 9999, this is bad code but I hope to not have to do anything more clever anytime soon

This commit is contained in:
adelikat 2014-07-04 00:15:33 +00:00
parent 49955a3447
commit 686610b047
2 changed files with 5 additions and 5 deletions

View File

@ -134,11 +134,11 @@ namespace BizHawk.Client.Common
}
else if (def.FloatControls.Contains(key))
{
var temp = trimmed.Substring(iterator, 4);
var temp = trimmed.Substring(iterator, 5);
var val = int.Parse(temp.Trim());
this.MyFloatControls[key] = val;
iterator += 5;
iterator += 6;
}
}
}

View File

@ -107,7 +107,7 @@ namespace BizHawk.Client.Common
else
{
var val = (int)_source.GetFloat(button);
sb.Append(val.ToString().PadLeft(4, ' ')).Append(',');
sb.Append(val.ToString().PadLeft(5, ' ')).Append(',');
}
}
else if (_source.Type.BoolButtons.Contains(button))