if (point.status == gwc::TOUCHADDED){ for (auto& rect : rectangles){ if (rect.second.Hit(window_coords.first, window_coords.second)){ // If this is a new point and hits one of our touch objects, we want to let GestureWorks // know so that it can perform cluster analysis during its processing cycle. GestureWorks::Instance()->AddTouchPoint(rect.first, point.point_id); rect.second.AddPoint(point.point_id); break; // only get the first one } } }