internal void UpdateLeftStickWithRawValue(Vector2 value, ulong updateTick, float deltaTime) { LeftStickLeft.UpdateWithRawValue(Mathf.Max(0.0f, -value.x), updateTick, deltaTime); LeftStickRight.UpdateWithRawValue(Mathf.Max(0.0f, value.x), updateTick, deltaTime); if (InputManager.InvertYAxis) { LeftStickUp.UpdateWithRawValue(Mathf.Max(0.0f, -value.y), updateTick, deltaTime); LeftStickDown.UpdateWithRawValue(Mathf.Max(0.0f, value.y), updateTick, deltaTime); } else { LeftStickUp.UpdateWithRawValue(Mathf.Max(0.0f, value.y), updateTick, deltaTime); LeftStickDown.UpdateWithRawValue(Mathf.Max(0.0f, -value.y), updateTick, deltaTime); } }
internal void UpdateLeftStickWithRawValue(Vector2 value) { LeftStickLeft.UpdateWithRawValue(Math.Max(0.0f, -value.X)); LeftStickRight.UpdateWithRawValue(Math.Max(0.0f, value.X)); if (InputManager.InvertYAxis) { LeftStickUp.UpdateWithRawValue(Math.Max(0.0f, -value.Y)); LeftStickDown.UpdateWithRawValue(Math.Max(0.0f, value.Y)); } else { LeftStickUp.UpdateWithRawValue(Math.Max(0.0f, value.Y)); LeftStickDown.UpdateWithRawValue(Math.Max(0.0f, -value.Y)); } }