I have a 3D game that I'm creating from scratch, and it uses the mouse to rotate the camera. Right now, if I move the cursor out the window, it will not be able to control the program anymore, obviously. I need to figure out how to prevent it from exiting the window, and keep turning the camera. I think I need to use robot to get the last known position of the mouse and move the mouse there, but I can't find the code for that anywhere. Please help!