P5JS Klik mouse kiri
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