Skip to content

Instantly share code, notes, and snippets.

@laras126
Created March 10, 2011 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laras126/864060 to your computer and use it in GitHub Desktop.
Save laras126/864060 to your computer and use it in GitHub Desktop.
void keyPressed() {
if (key == CODED){
if (keyCode == BACK) {
background(100, 200, 98);
}
}
if (key == CODED && keyCode == KeyEvent.KEYCODE_BACK) {
keyCode = 0; // don't quit by default
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment