Thanks to all your reply, I will change my design to using thread then,
cuz it sounds much easier for me to program in threads this way. :)
Andy
Florin Herinean wrote:
Being afraid of threads is pretty stupid. Threads are what makes things to
happen smooth and to promptly react regardless
D API
[mailto:[EMAIL PROTECTED] Behalf Of Andy
Sent: Mittwoch, 28. April 2004 15:37
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Java3D and Mouse Listener question
Thank you for replying.
I need to check the mouse position constantly even it's not moving, for
example, if I move my mouse t
> Someone
> suggests me to use a thread to check constantly inside the method
Me. ;)
> Loop
> Check mouse position
> IF mouse position is in the area, do something
> ELSE do nothing
> End Loop
Sure, you can do exactly that in Java; just the way you mentioned
it.
list for Java 3D API
[mailto:[EMAIL PROTECTED] Behalf Of Andy
Sent: Dienstag, 27. April 2004 20:12
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Java3D and Mouse Listener question
Hi all,
I am currently have a program that has a cube, and a camera. I use
mouse event listener to check if the mouse moves
Behalf Of Andy
Sent: Dienstag, 27. April 2004 20:12
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Java3D and Mouse Listener question
Hi all,
I am currently have a program that has a cube, and a camera. I use
mouse event listener to check if the mouse moves to the edge of the
program, if yes, then it m
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
~ There is no direct function, that I know of, that will do this
automatically.
~ You could write your own class that does this though. The
program will
want to implement the mouse listener and extend the thread class.
Inside a while(true)
Hi all,
I am currently have a program that has a cube, and a camera. I use
mouse event listener to check if the mouse moves to the edge of the
program, if yes, then it moves the camera. But if I move my mouse to
the edge and stop there, it just checks whenever the mouse moves or not,
otherwise, i