Example #1
0
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;
    }
}
Example #2
0
RotateDesktopGesture::RotateDesktopGesture() :
	Gesture("Rotate Desktop", 2, 2, false)
{
	clearGesture();
}
Example #3
0
void Gesture::clear()
{
	_isProcessing = false;
	_gestureTouchPaths.clear();
	clearGesture();
}
Example #4
0
RightClickGesture::RightClickGesture() :
    Gesture("RightClick", 1, 1, true)
{
    clearGesture();
}
Example #5
0
PinchZoomGesture::PinchZoomGesture() : 
	Gesture("Pinch Zoom", 2, 2, false)
{
	clearGesture();
}