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 › Not stop a program.
Page Index Toggle Pages: 1
Not stop a program. (Read 916 times)
Not stop a program.
Apr 28th, 2009, 9:37am
 
Hello.

I want my program not to stop when I use also 'escape' key.
Please, help me.

Thank's.
Re: Not stop a program.
Reply #1 - Apr 28th, 2009, 12:01pm
 
There is a hint in PApplet.java. Solution is:
Code:
void keyPressed()
{
if (key == KeyEvent.VK_ESCAPE) {
key = 0;
}
}
Re: Not stop a program.
Reply #2 - Apr 28th, 2009, 12:45pm
 
Thank's.

It works very well.
Page Index Toggle Pages: 1