That would require the MAME C++ code knowing about MacOS internals, which is something we obviously don't want to do.

If Lua scripts could know the mouse pointer's position in the window you could map the mouse inputs to nothing and have a script drive the pointer, but I don't think that's currently possible.