| Name | pmouseX |
||
|---|---|---|---|
| Examples | // Move the mouse quickly to see the difference
// between the current and previous position
void draw()
{
background(204);
line(mouseX, 20, pmouseX, 80);
} |
||
| Description | The system variable pmouseX always contains the previous horizontal coordinate of the mouse. This is the horizontal position of the mouse in the frame previous to the current frame. | ||
| Syntax | pmouseX |
||
| Parameters | |||
| Usage | Web & Application | ||
| Related |
pmouseY mouseX mouseY mouseButton mousePressed() mouseReleased() mouseMoved() mouseDragged() |