Here is my processing program, and it runs great, and reports everything I need to the serial window. I dont know if this is actually transmitting over the serial, I only assume this because the command are correct and processing lets the program run;O) (that might be too large an assumption) anyway i want to get this data back to my arduino so I can process the mouse information for things like a Mouse delta, and having the ability to get screen size. Hopefully this will allow me to take this relative mouse movement to the next level!
import java.awt.MouseInfo;
import java.awt.Point;
import processing.serial.*;
//adding the serial port, just gotta name it something i guess
Serial port;
void setup() {
//frame.removeNotify();
// Get the name of the first serial port
// where we assume the Arduino is connected
String portName = Serial.list()[0];
// initialize our serial object with this port
// and the baud rate of 9600
port = new Serial(this, portName, 9600);
}
void draw() {
this.frame.hide();
Point mouse;
mouse = MouseInfo.getPointerInfo().getLocation();
println("X=" +mouse.x);
println("Y=" +mouse.y);
println(displayWidth);
println(displayHeight);
port.write(mouse.x);
port.write(mouse.y);
}