Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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