"Jonathan Albert C. Vallar" wrote:
> I just would like to ask if I will be able to create a behavior that will awaken
>when the left mouse button is pressed not only my Mouse Keypresses.
Correct, exception for this line.
> if ((evt.getModifiers() & InputEvent.BUTTON3_MASK)==
>InputEvent.BUTTON1_MASK)
Notice the bitwise AND is for button 3, but the equality comparison is
for button 1. Fix this, and it should work.
--
Justin Couch http://www.vlc.com.au/~justin/
Freelance Java Consultant http://www.yumetech.com/
Author, Java 3D FAQ Maintainer http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
- Greg Bear, Slant
-------------------------------------------------------------------
===========================================================================
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".