The role of the Legendre transform in the study of the Floer complex of cotangent bundles