Substituting a mouse input for two axes accelerometer input-Arduino/Processing

I have used the Graph sketch in the learning tab to read an analogue input into processing which worked fine. I now wish to take two analogue inputs from an ADXL3XX and use them as a substitute for the x and y functions on the mouse() function in Processing. Can anyone give me some directions on how to do this?

ADXL3XX

Which type exactly? The ones I know use I2C or SPI to transfer the values so the analog inputs are not used. If you have a Leonardo you can simulate the mouse for all applications not just Processing.

Thanks, it is an ADXL320 breakout board by Sparkfun, and doesn't have I2C or SPI.

Next time please provide a link to the datasheet (http://www.analog.com/static/imported-files/data_sheets/ADXL320.pdf) so not all readers have to google themselves.

What I wrote about the Leonardo still applies.

Can anyone give me some directions on how to do this?

Where do you have problems? Reading two analog values? Sending the over the serial interface? Are you already using a Leonardo?