@barbudreadmon Thanks, that sounds great. I'll test it today or in the next days. My Pi is doing the update from source right now, but I don't know yet if I'll have the time to test it later today.
AFAIK there should be no need of different mouse devices for trackball/spinner/lightgun, because they all use the same /dev/input/event… devices. (Multiple mouse devices may be needed for games with multiple mouse-type devices, though.)
Trackballs and lightguns will use both axes of a mouse device, whereas spinners will use only one axis per spinner. For two spinners, that may be X and Y of a single mouse device if they are connected that way. Others, like the USB adapters that come with the SpinTrak spinners, will map them as separate mouse devices and only use their X axes.
https://retropie.org.uk/docs/Spinners,-Trackballs,-Lightguns,-and-other-Mouse-Devices/ describes the different kinds of axis mappings in great detail.