Click on each of the input buttons you want mapped to your gamepad, immediately afterward, physically press, on your 360 controller, the button/action you want mapped.
Do the same for the Nunchuk. (click "Configure" under "Extension")