Hi, this is my first time using p5.js and javascript for that matter. But I came upon this warning/error while running this code from one of the getting started pages on the p5.js website:
function setup() {
createCanvas(640, 480);
}
function draw() {
if (mouseIsPressed) {
fill(0);
} else {
fill(255);
}
ellipse(mouseX, mouseY, 80, 80);
}
The error:
Use of the orientation sensor is deprecated. p5.js:46753:6
Use of the motion sensor is deprecated. p5.js:46753:6
Just wondering what’s going on here and is there a new way to get the mouse coordinates? or is that not the problem here? Thanks!