You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the follow up @mudit06mah ! I'll close this for now as this is more of a difference between the 1.x events and the 2.x events. If you're interested in improving the documentation on transitioning sketches form 1.x to 2.x events usage, I've made an issue hre: processing/p5.js-compatibility#23
If you find bugs with mouseButton in 2.x please feel free to reopen or report a new issue!
Most appropriate sub-area of p5.js?
p5.js version
2.0.0
Web browser and version
Brave Version 1.77.97
Operating system
Windows
Steps to reproduce this
If you simply left click, this print statement will return false
function mousePressed() {
print(mouseButton === LEFT);
}
The text was updated successfully, but these errors were encountered: