Day 31 complete.

This commit is contained in:
igor
2026-04-10 02:06:25 -07:00
parent a2985c20ef
commit 1635bebb5d
3 changed files with 33 additions and 30 deletions
+6 -6
View File
@@ -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;
}