nope, the mouse button works correctly in windows but it won't fire in mame. oh well, thanks for the reply anyway.
This is answered in the mame faq;
read the faqJust for you, special instructions:
Press TAB, go into "Input (general)", and set "player 1 button 1" to "L ctrl OR mouse button 0": go to player1 button 1 in the menu, press [enter] key, press the player 1 "fire" button on your CP, wait until "Lctrl" shows, press enter again, press the trackball "fire" button.
You can also do this with ctrlr ini files, instead, but that will take a little more understanding. To learn more on this read docs/ctrlr.txt and
easyemu