void MyMoveServer::touchPress(QList<QPoint> points) { switch (m_state) { case OBSERVING: qDebug("touchPress, observing"); clearGesture(); for (int i = 0; i < points.length(); i++) { m_gesture[i].append(points[i]); } break; case COLLECTING_DATA: clearGesture(); for (int i = 0; i < points.length(); i++) { m_gesture[i].append(points[i]); } break; case IDLE: case RECOGNIZING: qDebug("idle, ignoring event"); // Ignore events break; default: break; } }
RotateDesktopGesture::RotateDesktopGesture() : Gesture("Rotate Desktop", 2, 2, false) { clearGesture(); }
void Gesture::clear() { _isProcessing = false; _gestureTouchPaths.clear(); clearGesture(); }
RightClickGesture::RightClickGesture() : Gesture("RightClick", 1, 1, true) { clearGesture(); }
PinchZoomGesture::PinchZoomGesture() : Gesture("Pinch Zoom", 2, 2, false) { clearGesture(); }