We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
mousePressed() bug (Read 1713 times)
mousePressed() bug
Jun 20th, 2005, 4:21pm
 
I dont know wheter the bug is in the code, or in the documentation, but heres what the current docs say:

Description   The mousePressed() function is called every time the mouse button is pressed. When using a mouse with more than one button, only the left button is detected.  

When i use mousePressed() in my applet with processing (version 0091) mousePressed() got called too when i press right mouse button. (noname optical scroll mouse Wink)
Re: mousePressed() bug
Reply #1 - Jun 20th, 2005, 5:25pm
 
I'd say that its a bug in the documention, it would be a bit lame if only the left mouse was detected. I know I've written applets that use both let, right and middle mouse buttons.
Re: mousePressed() bug
Reply #2 - Jun 20th, 2005, 11:08pm
 
right, i think this is just a typo (or misunderstanding between casey and i) from a while back when we weren't detecting the different mouse buttons (which is done with mouseButton now...)
Re: mousePressed() bug
Reply #3 - Jun 25th, 2005, 12:56am
 
Processing only detected the left button for a long time, but now in the golden age of BETA it's not extended to right and center buttons. The reference is now updated for the next release.
Page Index Toggle Pages: 1