By default, MAME does not enable the mouse input, which is most likely your problem.
If you are using the command line version, edit either the mame.ini or mame.cfg file to enable mouse support.
If you're using MAME32, open the Default Options dialog box, and the check the box "Enable Mouse" under the Controllers tab.
--OSCAR