diff --git a/src/content/reference/en/p5/mouseButton.mdx b/src/content/reference/en/p5/mouseButton.mdx index de0915a9bc..d3381c23b7 100644 --- a/src/content/reference/en/p5/mouseButton.mdx +++ b/src/content/reference/en/p5/mouseButton.mdx @@ -66,13 +66,13 @@ example: background(200); if (mouseIsPressed === true) { - if (mouseButton === LEFT) { + if (mouseButton.left) { circle(50, 50, 50); } - if (mouseButton === RIGHT) { + if (mouseButton.right) { square(25, 25, 50); } - if (mouseButton === CENTER) { + if (mouseButton.center) { triangle(23, 75, 50, 20, 78, 75); } }