Many Thanks arzoo for the reply.
I got it working in the end. I relaised when i generated my input map that I had LEDwiz selected instead of UPAC (i am using a pacdrive).
All is now working as well as the joystick programming.
Out of interest, i can tell the joystick is programmed per game for mame as it says it via speech, but does it reprogram it back to 8way to use in maximus once the game exits?