main()
{
    ...
    ...

    while(1)
    {
        if(MTOUCH_Service_Mainloop())
        {
            if(MTOUCH_Gesture_isGestureDetected())
            {
                 uint8_t gesture_which_gesture = MTOUCH_Gesture_GestureID_Get();

                  /*  This value is only applicable to wheel gesture and pinch/zoom*/
                  uint8_t gesture_info = MTOUCH_Gesture_GestureValue_Get();

                  /* process the gesture */
            }

        }
    }
}