Skip to content

Instantly share code, notes, and snippets.

@dviramontes
Created June 15, 2012 04:04
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 dviramontes/2934621 to your computer and use it in GitHub Desktop.
Save dviramontes/2934621 to your computer and use it in GitHub Desktop.
keyboard keycodes in processing.js
p5.keyPressed = function() {
if(p5.keyCode == p5.BACKSPACE ){
console.log("backspace was pressed");
}else if(p5.keypressed){
if(p5.key == 'c'){
console.log("c was pressed");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment