We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4532c49 + 848a9c8 commit f7c09cfCopy full SHA for f7c09cf
src/input/mouse.js
@@ -92,13 +92,13 @@ define(function (require) {
92
p5.prototype.mouseButton = 0;
93
94
/**
95
- * The boolean system variable isMousePressed is true if the mouse is pressed
+ * The boolean system variable mouseIsPressed is true if the mouse is pressed
96
* and false if not.
97
*
98
- * @property isMousePressed
+ * @property mouseIsPressed
99
*/
100
- p5.prototype.isMousePressed = false;
101
- p5.prototype.mouseIsPressed = false; // khan
+ p5.prototype.mouseIsPressed = false;
+ p5.prototype.isMousePressed = false; // both are supported
102
103
p5.prototype.updateMouseCoords = function(e) {
104
var mousePos = getMousePos(this._curElement.elt, e);
0 commit comments