@lethalrush wrote:
What is the simplest way of detecting whether a rectangle is “clicked on” while ofEasyCam is on? (such that no matter what angle and zoom I am at, I can still register a click on the rectangle.)
I have this so far, which works when ofEasyCam is off:
if (mouseX >= rectangleLocationX && mouseX <= rectangleLocationX + rectangleSizeX && mouseY >= rectangleLocationY && mouseY <= rectangleLocationY + rectangleLocationY + rectangleSizeY ) {...}
Posts: 3
Participants: 2