getTouchCircle() Check's if you are touching/holding/not touching inside a circle area
also check getTouch() and getTouchRect() Usage
bool getTouchCircle( int x, int y, // Position of the circle int radius, // Radius of the circle KeyPhase phase // KeyPhase enum )
KeyPhase enum contain: press, held, release
if(getTouchCircle(0, 0, 30, KeyPhase::press)){ //Checks if the 30px radius circle area in the coordinates X:0 Y:0 are touched [YOUR CODE HERE] }
There was an error while loading. Please reload this page.