The mouseClicked() function is called after a mouse button has been pressed and then released. Mouse and keyboard events only work when a program has draw() . Without draw() , the code is only run once and then stops listening for events. Advanced Wh
()
| 2486 | * @see PApplet#mouseWheel(MouseEvent) |
| 2487 | */ |
| 2488 | public void mouseClicked() { } |
| 2489 | |
| 2490 | |
| 2491 | public void mouseClicked(MouseEvent event) { |