Gamepad both axis inverted

My gamepad sticks are inverted.
When I push forward the character moves backwards.
When I pull the stick backwards the character walks forwards.
when i try to look up it looks down
when I try to look down it looks up.

I can fix the looking up and down by inverting the mouse in interface but nothing for the walking stick.

please help