-----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) loop, check the mouse position and then sleep for x
milliseconds.
~       To make things a little more robust, you could put a check in the
while() loop so you can turn off the check without killing the class.

Andy wrote:
| 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".

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAjx165qcyxDPLrxARAiSPAJ9iTfBdFK9z1e3T+nWbEkGx0xrcQQCg7KcW
9U6lUbXEtVMdZMe2p69QwsA=
=8Qtl
-----END PGP SIGNATURE-----

===========================================================================
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