The keyPressed() function is called once every time a key is pressed. The key that was pressed is stored in the key variable. For non-ASCII keys, use the keyCode variable. The keys included in the ASCII specification (BACKSPACE, TAB, ENTER, RETURN, ESC, and DELETE)
()
| 2766 | * @see PApplet#keyReleased() |
| 2767 | */ |
| 2768 | public void keyPressed() { } |
| 2769 | |
| 2770 | |
| 2771 | public void keyPressed(KeyEvent event) { |