change PlayerInputComponent.update to use calcX and calcY methods