Assuming you have a +12V power source to run it all That should be all you need hardware wise.Is there anything else I need to buy to make this work?
having done this myself I will say that getting analog controls to work for guns directly in MAME sucks, you should look for a piece of software that can take the analog input and convert it into mouse position, with calibration. I've heard GlovePie does this but I've never tried.