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.
IndexProgramming Questions & HelpSyntax Questions › mouseX, mouseY not constrained
Page Index Toggle Pages: 1
mouseX, mouseY not constrained (Read 1091 times)
mouseX, mouseY not constrained
Apr 29th, 2005, 4:22pm
 
This is a minor problem and easy to work around, but I noticed that mouseX and mouseY (and probably pmouseX and pmouseY by extension) are not constrained to the size of the canvas. Is this intentional?

I've temporarily fixed it by using constrain().
Re: mouseX, mouseY not constrained
Reply #1 - Apr 29th, 2005, 4:29pm
 
this is by design.. in fact, most people would prefer that mouse work completely outside the window, but it only works on mouse drags. we're just going with what java gives us.
Page Index Toggle Pages: 1