mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 11:21:06 +01:00
fix reference for mousePressed variable
Related to https://github.com/processing/processing-website/issues/343
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user