P5JS оставил щелчок мыши
if (mouseButton === LEFT) { // LEFT MOUSE BUTTON
//do stuff...
}
else if (mouseButton === RIGHT) { // RIGHT MOUSE BUTTON
//do other stuff...
}
else if (mouseButton === CENTER) { // MOUSE WHEEL
//do other stuff...
}
DIO