PlatformTouchEvent::PlatformTouchEvent(BlackBerry::Platform::TouchEvent* event) : PlatformEvent(touchEventType(event), event->shiftActive(), event->ctrlActive(), event->altActive(), false, currentTime()) , m_rotation(0) , m_scale(1) , m_doubleTap(false) , m_touchHold(false) { for (unsigned i = 0; i < event->m_points.size(); ++i) m_touchPoints.append(PlatformTouchPoint(event->m_points[i])); if (event->isPinch()) { m_rotation = event->pinchData().m_angle * 180 / M_PI; m_scale = event->pinchData().m_scale; } m_doubleTap = event->isDoubleTap(); m_touchHold = event->isTouchHold(); }
WebKit2PlatformTouchPoint(const WebPlatformTouchPoint& webTouchPoint) : PlatformTouchPoint(webTouchPoint.identifier(), webTouchPoint.location(), touchEventType(webTouchPoint)) { }