| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### pmouseX
Examples |  |
    // Move the mouse quickly to see the difference
    // between the current and previous position
    void loop()
    {
      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
Usage |  | Web & Application
Related |  | mouseX mouseY pmouseY mousePressed mousePressed() mouseReleased() mouseMoved() mouseDragged()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |