Results 1 to 4 of 4
Thread: Using robot
- 04-18-2012, 05:48 AM #1
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
Using robot
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!
- 04-18-2012, 06:05 AM #2
Re: Using robot
Moved from New to Java.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-18-2012, 06:08 AM #3
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
Re: Using robot
Sorry thanks:D
- 04-18-2012, 07:18 AM #4
Re: Using robot
Ever come across MouseInfo / PointerInfo?Right now, if I move the cursor out the window, it will not be able to control the program anymore
That sounds really annoying to the user. But if you have to do this, you're on the right track with Robot. Not to get the last known position of the mouse, but to position the mouse cursor..I need to figure out how to prevent it from exiting the window
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates any problem you still have.
dbLast edited by DarrylBurke; 04-18-2012 at 07:31 AM.
Why do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Robot map
By Naphoria in forum New To JavaReplies: 5Last Post: 01-16-2012, 05:06 PM -
Help with Robot class please
By davetheant in forum New To JavaReplies: 2Last Post: 01-04-2011, 12:13 PM -
Robot
By rp181 in forum Advanced JavaReplies: 4Last Post: 12-07-2010, 12:58 AM -
Robot
By PhQ in forum AWT / SwingReplies: 13Last Post: 08-26-2010, 12:10 AM -
Robot class
By coltragon in forum New To JavaReplies: 6Last Post: 07-12-2010, 05:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks