Home
last modified time | relevance | path

Searched refs:adjustedMagnitude (Results 1 – 1 of 1) sorted by relevance

/dports/games/SRB2/SRB2-SRB2_release_2.2.9/src/
H A Dg_game.c1001 INT32 adjustedMagnitude = abs(magnitude); in G_BasicDeadZoneCalculation() local
1003 …if (jdeadzone >= JOYAXISRANGE && adjustedMagnitude >= JOYAXISRANGE) // If the deadzone and magnitu… in G_BasicDeadZoneCalculation()
1005 …else if (adjustedMagnitude > jdeadzone) // Otherwise, calculate how much the magnitude exceeds the… in G_BasicDeadZoneCalculation()
1007 adjustedMagnitude = min(adjustedMagnitude, JOYAXISRANGE); in G_BasicDeadZoneCalculation()
1009 adjustedMagnitude -= jdeadzone; in G_BasicDeadZoneCalculation()
1011 deadzoneAppliedValue = (adjustedMagnitude * JOYAXISRANGE) / (JOYAXISRANGE - jdeadzone); in G_BasicDeadZoneCalculation()