never have analog controls that arent integerized
This commit is contained in:
parent
777fbeda45
commit
b869662792
|
@ -97,6 +97,10 @@ namespace BizHawk.Client.Common
|
||||||
//zero 09-mar-2015 - not sure if adding + 1 here is correct.. but... maybe?
|
//zero 09-mar-2015 - not sure if adding + 1 here is correct.. but... maybe?
|
||||||
var output = (input * multiplier + 10000.0f) * (range.Max - range.Min + 1) / 20000.0f + range.Min;
|
var output = (input * multiplier + 10000.0f) * (range.Max - range.Min + 1) / 20000.0f + range.Min;
|
||||||
|
|
||||||
|
//zero 09-mar-2015 - at this point, we should only have integers, since thats all 100% of consoles ever see
|
||||||
|
//if this becomes a problem we can add flags to the range and update GUIs to be able to display floats
|
||||||
|
output = (int)output;
|
||||||
|
|
||||||
float lbound = Math.Min(range.Min, range.Max);
|
float lbound = Math.Min(range.Min, range.Max);
|
||||||
float ubound = Math.Max(range.Min, range.Max);
|
float ubound = Math.Max(range.Min, range.Max);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue