Solved
handleDragEvent on specific object only
Is there a possibility to handle events which are in specific area, i.e. I would like to know when and how user drags over texture mapper area to rotate it accordingly.
Thank You,
Sławek
Is there a possibility to handle events which are in specific area, i.e. I would like to know when and how user drags over texture mapper area to rotate it accordingly.
Thank You,
Sławek
You can override the handleDragEvent function for your view and check if the coordinates intersect with various elements on screen. Here's some pseudocode
void MyView::handleDragEvent(const DragEvent& evt)
{
int16_t newX = evt.getNewX();
int16_t newY = evt.getNewY();
//Check for intersection
if(intersects)
{
element.handleDragEvent(evt);
}
...
}Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.