fix axis input calculation truncating instead of rounding
very noticable with MouseX/Y binds, you cannot reach certain positions
This commit is contained in:
parent
96b4de92af
commit
420cf323aa
|
@ -103,7 +103,7 @@ namespace BizHawk.Client.Common
|
|||
value += range.Neutral;
|
||||
|
||||
// finally, constrain to range
|
||||
_axes[k] = ((int) value).ConstrainWithin(range.Range);
|
||||
_axes[k] = ((int)Math.Round(value)).ConstrainWithin(range.Range);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue