Skip to content

Instantly share code, notes, and snippets.

Created June 15, 2012 04:04
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