Probably not.
You might be able to do something, but I think it would be inefficient.
Instead...
goto oscarcontrols. Pick your favorite spinner, your favorite knob... Then order a prehacked usb mouse. They are 9 bucks and SUPER easy and a small percentage of a new spinner will cost.
but the troubles.
Well, two usbs work great on windows... But they both work at the same time. So if you hit the spinner a little when using the trackball (or other way around) it will combine the values sent.
solutionsish.
use AnalogMame+ (or NoNameMame) which seperate them. And all spinner games you setup to mouse 1 and trackball games to mouse 2 (or whatever they are setup as).
But both builds are usually a few versions old. Not a big deal... just requires you to keep more then one version of mame installed on your cabinet.