Actually, Mame32 will do this for you.
Just select the Trackball folder to the right!
FWIW, that list includes analog stick and spinner games, too. A trackball will work great for most of those games, but the list is more that a list of trackball games.
A bunch of TB games use 2 buttons per player, but missle command used 3 (and thus arcade classics). Wacko used a trackball and an 8-way joystick. Some of the golf had a few buttons, IIRC
Quick list of roms mame drivers say use trackballs (ver 0.70, minus clones, I hope):
abaseb
arcadecl
atarifb
ataxx
beezer
bking
bladestl
bladstle
bootcamp
bowler
bowlrama
bsktball
cabal
capbowl
ccastles
centiped
centtime
clbowl
cloud9
combasct
dangerz
ebases
gghost
gimeabrk
gridiron
gridlee
gtg2
gtg2t
horshoes
irrmaze
krzybowl
lemmings
liberatr
magworm
marble
milliped
millpac
minigolf
missile
mjleague
poundfor
quantum
rambo3a
rampart
reactor
sdi
sdioj
sentetst
shootbul
shuffle
shufshot
shuuz
slither
snakepit
snakjack
soccer
sonic
spdball
spiker
stratab
suprmatk
syvalion
teedoff
tehkanwc
topsecex
trisport
usclssic
viper
wacko
wcbowl