Keyboard input

How do I use keyboard input to display Text on the screen using text string?

Answers

  • Before setup

    String strInput=““;

    In draw

    text(strInput,144,44);

    And a 3rd function:

    void keyPressed() {

    strInput = strInput + key;

    }

  • Duplicate

Sign In or Register to comment.