I’m initializing xbodrv with the –dpad-as-button, and –trigger-as-button flags. If you’re not doing that, my settings in emu.cfg won’t work for you. I’m not using the init.d script, I could never get it to work correctly, and it also makes it more difficult to play with the controller modes that are available through xboxdrv. I find it handy to be able to switch the button config on the fly for different emulators such as Vice.
What I did to come up with those settings is take a look at the controller section in retroarch.cfg, and use that as a guide to help create the same settings in emu.cfg. Setup wasn’t exactly the same as in retroarch.cfg. I mentioned somewhere above that the dpad had some directions swapped, so lookout for that.