FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   mousePressed sensitivity
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: mousePressed sensitivity  (Read 250 times)
dog
Guest
Email
mousePressed sensitivity
« on: May 16th, 2004, 8:17pm »

Hi,
i realised that if you have something like  
if(mousePressed) {
  make something;
}
and you press and hold the mouse, it will keep doing that function over and over.  Is there some way to limit it to only once?
 
flight404

WWW Email
Re: mousePressed sensitivity
« Reply #1 on: May 16th, 2004, 8:22pm »

I think this is what you want...
 
http://processing.org/reference/mousePressed_.html
 
It is the mousePressed method which gets called once when the mouse is pressed.
 
dog
Guest
Email
Re: mousePressed sensitivity
« Reply #2 on: May 16th, 2004, 9:05pm »

thats it!  thanks
 
Pages: 1 

« Previous topic | Next topic »