I finally got the trackball and spinner to work.
I finally got the trackball and spinner to work with advmame
the first thing you need to do is figure out which mouse is providing the inputs
type ls /dev/input – I had mouse0 and mouse1
determine which mouse is providing input for the trackball and spinner – it will be the same.
type cat /dev/input/mouse0
move the trackball or spinner. If text is showing on the screen then you will use mouse0 in your configuration. If no text then substitute mouse0 with mouse1.
The roms that I had loaded were for advmame-0.94.0. edit the advmame-0.94.0.rc configuration file
I used the advmame-0.94.0 roms
edit advmam-0.94.0.rc in the retropie/.advance folder
edit the following lines