remember that not every platform has analog controls

This commit is contained in:
feos 2016-11-19 21:21:07 +03:00
parent a8dde12c1f
commit a413f524c9
1 changed files with 4 additions and 2 deletions

View File

@ -41,8 +41,10 @@ namespace BizHawk.Client.Common
{
return string.Empty;
}
string neutral = _source.Type.FloatRanges[0].Mid.ToString().PadLeft(5, ' ') + ',';
string neutral = " 0,";
if (_source.Type.FloatRanges.Count > 0)
neutral = _source.Type.FloatRanges[0].Mid.ToString().PadLeft(5, ' ') + ',';
return le
.Replace(".", " ")
.Replace("|", "")