fix axis input calculation truncating instead of rounding

very noticable with MouseX/Y binds, you cannot reach certain positions
This commit is contained in:
Morilli 2024-09-23 23:16:39 +02:00
parent 96b4de92af
commit 420cf323aa
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}