Help with Data from processing

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);
}

I dont know if this is actually transmitting over the serial

It is. Whether it is sending it to the serial port that the Arduino is connected to, or not, is a different question.

Serial.list() is a method that returns a list of serial ports that the Arduino MIGHT be connected to. Print that list, to see what is in position 0, to confirm that it is indeed the port that the Arduino is connected to.

that might be too large an assumption

Indeed it is.

Hopefully this will allow me to take this relative mouse movement to the next level!

What is the Arduino going to do with the information about where the mouse is on the PC screen?

I am hoping to use this infor so I know where the mouse actually WAS, so that I can use this to figure out where the center is? If that makes sense? I am really feeling my way through this. I am created a VR gun for the Oculus Rift, it just getting anything other than Relative mouse movements...I did get absolute mouse mode working , the motion is right just a LOT of jumpy right angle in between movement...but this is what I am doing.