Please read up on the differences between the megadrive joypad port and the Amiga joystick port.
The best idea is to make a short adapter cable between the Amiga and the pad..
Two wires need to be crossed and IIRC one of the pad's buttons shorts +5 to ground, so you shouldn't directly connect it.