Programming Controller analog sticks

I was wondering if anyone knew of any good tutorials on programming the right analog stick on a gamepad? Specifically something similar to the way Raiden uses his sword in Metal Gear Revengence.

What i want is to have the player manipulate the direction of their attack by using the right stick. Flicking the stick diagonally will cause the character to slice diagonally. The are might even follow the direction of the right stick.

If anyone could help me on this subject i would very much appreciate it. Thanks

I have created an post to help how to setup the gamepad: See:
http://forum.unity3d.com/threads/182684-Input-GamePad-SetUp-PC?p=1248360#post1248360

I never play Metal Gear Revengence, so i don“t know how the character works.

Hope the setup gamepad help you out:)

Thanks alot. I really appreciate this. Thanks