Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the JavaDoc for mousePressed variable #605

Merged
merged 1 commit into from
Nov 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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