Skip to content

Commit

Permalink
fix reference for mousePressed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SableRaf committed Nov 25, 2022
1 parent f33f7ad commit 13976bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/src/processing/core/PApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,9 @@ public class PApplet implements PConstants {
public int mouseButton;

/**
* The <b>mousePressed()</b> function is called once after every time a
* mouse button is pressed. The <b>mouseButton</b> variable (see the
* related reference entry) can be used to determine which button has
* been pressed.
* The <b>mousePressed</b> variable stores whether a mouse button has been pressed.
* The <b>mouseButton</b> variable (see the related reference entry) can be used to
* determine which button has been pressed.
* <br /><br />
* Mouse and keyboard events only work when a program has <b>draw()</b>.
* Without <b>draw()</b>, the code is only run once and then stops
Expand Down

0 comments on commit 13976bb

Please sign in to comment.