How to compare dyn_int values?

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
adriantaw
Posts:8
Joined: Tue Nov 01, 2016 2:21 pm

How to compare dyn_int values?

Post by adriantaw »

Hi,

I am working with the gesturetriggered of a panel at the moment.

I want to create a "map" area for the gesture. The idea is if I do "swipe" movement in this map, then it will move the position of a shape.

Since the gesture position is identified as a dyn_int type, I need to compare it with dyn_int as well (x,y position).
However, it seems that the normal comparator symbol (>=,= "30,175" && (x)

AGorbatykh
Posts:59
Joined: Thu Dec 17, 2015 1:01 pm

Re: How to compare dyn_int values?

Post by AGorbatykh »

Code: Select all

int x = data.startPos[1], y = data.startPos[2];
if (x >= lower[1] && x = lower[2] && y

adriantaw
Posts:8
Joined: Tue Nov 01, 2016 2:21 pm

Re: How to compare dyn_int values?

Post by adriantaw »

Thanks alexander for the help! It works now :)

3 posts • Page 1 of 1