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)
   key == ENTER ?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: key == ENTER ?  (Read 1666 times)
nay

WWW
key == ENTER ?
« on: Apr 15th, 2005, 2:35am »

hi - just wondering what the keyword is for the return/enter key to check if it's been pressed
 
cheers.
 
st33d

WWW Email
Re: key == ENTER ?
« Reply #1 on: Apr 15th, 2005, 9:34am »

Code:

void setup(){}
void loop(){}
void keyPressed(){
if (key == 10){
println("enter");
}else{
println(key);
}
}
 

I could murder a pint.
Pages: 1 

« Previous topic | Next topic »