Go to the 'controller mapping' tab in mame32 under 'default game options' and set the mouse for trackball, paddle, dial, etc. Then just enable mouse in default game options for all games. I believe it should only use it in the games that use the mouse that way.