Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Capture click on rectangle while using ofEasyCam?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4929