void HelloMultitouch::handlePointEvents(const std::vector& point_events){ for (const auto& point : point_events){ if (point.status == gwc::TOUCHADDED || point.status == gwc::TOUCHUPDATE){ // By default, GestureWorks sends us coordinates in normalized screen space. To get to localized pixel // coordinates we need to do a conversion. std::pair screen_coords(normScreenToWindowPx(point.position.x, point.position.y)); // Update the touchpoints position touch_points[point.point_id] = TouchPoint(point.point_id, screen_coords.first, screen_coords.second); } else{ touch_points.erase(point.point_id); } } }