see, its for a 3rd person game like super mario, so when i move the joystick forward it moves forward, but when i rotate the camera's pan angle and i move the joystick forward the player keeps going to the same direction as before.
i mean the X axis has to change automaticly to adjust to the joystick movements.

for insteance if i rotate the camera 90ยบ, the player goes to the right when i move the joystick forward.

hmm dunno if i was clear enough...