Follow these steps to configure your gamepad:
1). Press the button "Clear All" at the bottom of gamepad setting window.
2). Press "Square" on the right side of game setting window by your mouse pointer and then press the button you want to assign on your gamepad immediately.
3). Follow the step 2 for All Buttons given on right side of Gamepad Settings window.
4). Now press OK.