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 › accessing the space bar in keyPressed()
Page Index Toggle Pages: 1
accessing the space bar in keyPressed() (Read 3708 times)
accessing the space bar in keyPressed()
May 6th, 2009, 11:37pm
 
Does anyone know what I need to say for the space bar?

for example:

if(key == SPACE)
{
x = x + 1;
}

Thanks.
Re: accessing the space bar in keyPressed()
Reply #1 - May 7th, 2009, 2:30am
 
space:  " "
Page Index Toggle Pages: 1