This is the line I'm facing with, I want to detect mouse click when being used in PC (which is working completey fine) and to detect clicks when used in mobile too.
if (keyDown("left") || mousePressedOver(left)) {
sofia.velocityX = -1
sofiavelocityY = 0
}
Note: I'm using p5.js
, p5.play.js
& p5.dom.min.js
I tried several other mouse click functions such as mouseOver etc.