i am assuming that you just cut the cord and replaced with a usb and are using xbcd. To get it to work in mame just enabled the joystick either in the command line or the Mame ini. Then just remap the controls in mame (press tab). You may have to change the options in the xbcd to either make it act as a joystick or gamepad, although I am not sure. I just tried it on my machine and it worked ok.