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.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › keyPressed(), keyReleased()
Page Index Toggle Pages: 1
keyPressed(), keyReleased() (Read 1047 times)
keyPressed(), keyReleased()
Feb 3rd, 2006, 12:16am
 
In the referance, the summary of keyPressed() (http://processing.org/reference/keyPressed_.html) and keyReleased() (http://processing.org/reference/keyReleased_.html) don't appear to mention that the draw() method is required for their operation. I believe that mousePressed() and mouseReleased() also have a similar behavior, but I haven't tested. It would be nice if this was made clear.

I already made the mistake of trying to call them without a draw() a few times already ^^'

Thanks,
David
Re: keyPressed(), keyReleased()
Reply #1 - Feb 3rd, 2006, 12:31am
 
Good point. Will fix.

Casey

Page Index Toggle Pages: 1