I don't understand why do you want to check the mouse position if the mouse
is not moving ??? It's obvious that the position is the last one where a
mouse move event was fired. If you really need to know the mouse position at
every moment, then just use the mouse move listener to store the position of
the event in some convenient place. Then from wherever you are, you can get
from there the current position. And don't forget to synchronize access to
the mouse position.

Cheers,

Florin

-----Original Message-----
From: Discussion 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 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, it doesn't know if the mouse pointer is on the edge or not.
Then is there any class or method that I can use to check mouse pointer
location every single second or loop?  Thanks.

Andy

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to