We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to use mousePressed() because with the normal variable the function is repeated until the mouse is released. But I don't know how to make functions that only happen when the mouse is pressed in a certain area. Does anyone know how to? Thanks
Answers
What do you have so far? In what area are you trying to detect mouse presses? Without this information, we have little to go on...
Variables mouseX & mouseY have current mouse's coordinates.
Use them to determine which area is "active". =:)
Also, take a look at this post below:
http://forum.processing.org/two/discussion/423/how-to-write-a-class-for-text-area-without-using-any-library
Not a "Question about Code", because we don't see any, but a typical question for "How To" category...
It is always a good idea to explore the Processing examples when you have such question:
http://processing.org/examples/mousefunctions.html
You can also check the mouse coordinates inside the function itself.