Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to register key presses in p5.js

function keyPressed() {
  if (keyCode === LEFT_ARROW) {
    value = 255;
  }
Source by p5js.org #
 
PREVIOUS NEXT
Tagged: #register #key #presses
ADD COMMENT
Topic
Name
1+3 =