Day 31 complete.
This commit is contained in:
+6
-6
@@ -545,12 +545,12 @@ static F32 SDLProcessInputStickValue(F32 Value, S32 DeadZoneThreshold)
|
||||
F32 Result;
|
||||
|
||||
Result = 0.0f;
|
||||
if(Value < -DeadZoneThreshold)
|
||||
Result = (F32)((Value + DeadZoneThreshold) /
|
||||
(32768.0f - DeadZoneThreshold));
|
||||
else if(Value > DeadZoneThreshold)
|
||||
Result = (F32)((Value + DeadZoneThreshold) /
|
||||
(32767.0f - DeadZoneThreshold));
|
||||
if(Value < -(F32)DeadZoneThreshold)
|
||||
Result = ((Value + (F32)DeadZoneThreshold) /
|
||||
(32768.0f - (F32)DeadZoneThreshold));
|
||||
else if(Value > (F32)DeadZoneThreshold)
|
||||
Result = ((Value + (F32)DeadZoneThreshold) /
|
||||
(32767.0f - (F32)DeadZoneThreshold));
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user