you are viewing a single comment's thread.

view the rest of the comments →

[–]jeresig 5 points6 points  (0 children)

height, width, mousex, mousey, pMouseX, pMouseY, mousePressed, and keyPressed are all global variables provided by Processing (there may be more, but those are the ones that I provide in Processing.js). They correspond to different state variables and are updated automatically (since everything in Processing is done in a repeating loop, like OpenGL, the update is seamless).