Simulating keyboard and mouse

Hi all, i’m trying to simulate my Java 3D virtual world to be able to take the user on a virtual tour of the environment. But to do this i need to be able to simulate the movement by passing in the coordinates to the program. Right now i have a Server that communicates with my application via a socket and sends it a stream of coordinates. How would i use these points to move the user around? How can i trigger the keyboard or mouse behaviors in Java 3D by passing in the coordinates? or maybe there is a better way of doing this. ???

Thanks a lot.
Ahmed

You could think of extending the keyboard and mouse behaviours that are provided with the java3d utility classes. Another solution (probably better) is to examine the source of those behaviours and create your own that get information from a socket instead of getting it from awt events. It doesnt look that hard to do. :wink:

java.awt.Robot

[quote]java.awt.Robot
[/quote]
Are you on the competition for the weirdest post of the month ?