Mouse controller and Max MSP

Hello Arduino-Friends,

Below is an Arduino-newbie question. I wish to use the Leonardo-board as a usb-mouse and wish to control it (mainly XY position and L+R clicks) from the serial connection from Max MSP from the same computer, but not through the Digital inputs or some physical buttons (as usual).

In other words, do you think its possible to send, for example on/off clicks-commands from Max while Leonardo is connected and recognized as a mouse?

Thank you in advance.