Orientation / motion sensors deprecated

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!

Hmm that’s strange. Your code works fine for me, and I don’t see any warning.

Honestly this is probably just a quirk and can safely be ignored.

1 Like

Got the same warning, just after updating FireFox, July 30, 2018. Did not see the warning before I did the upgrade.

–Tim

same here but apparently it works ok if you ignore the errors. (Mac OS + FireFox 61.0.2). /soon