Arduino PS/2 Mouse controlled RC car

Is there a way to use processing instead of connecting mouse to the arduino. Im wanting to use the follow sketch in processing and have arduino IDE read it.

Yes. It is possible. The mouse position can be send via USB port in Processing using a transimiter, the Ardiuno will received the data and do "the robot thing" XD