Skip to content

Commit 848a9c8

Browse files
author
irisyuan
committed
Update doc from isMousePressed to mouseIsPressed
1 parent 4532c49 commit 848a9c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/input/mouse.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ define(function (require) {
9292
p5.prototype.mouseButton = 0;
9393

9494
/**
95-
* The boolean system variable isMousePressed is true if the mouse is pressed
95+
* The boolean system variable mouseIsPressed is true if the mouse is pressed
9696
* and false if not.
9797
*
98-
* @property isMousePressed
98+
* @property mouseIsPressed
9999
*/
100-
p5.prototype.isMousePressed = false;
101-
p5.prototype.mouseIsPressed = false; // khan
100+
p5.prototype.mouseIsPressed = false;
101+
p5.prototype.isMousePressed = false; // both are supported
102102

103103
p5.prototype.updateMouseCoords = function(e) {
104104
var mousePos = getMousePos(this._curElement.elt, e);

0 commit comments

Comments
 (0)