Part Number: MSP430FR2632
Hi,
I encounter a problem reading gestures on a small trackpad. In fact, I can get different gestures, but I cannot repeat the same gesture.
Here is my code:
static void myGestureTrackpadCallback(tSensor* pSensor) {
eGestures theCurrentGesture = eNoGesture;
theCurrentGesture = (eGestures)CAPT_getTrackpad_Gesture(&my_Trackpad);
if (theCurrentGesture != myData.lastGesture && theCurrentGesture != eNoGesture ){
myData.lastGesture = theCurrentGesture;
myGestureTransition_fsm (transitionValidPacket);
}
}
The problem is that I I got a "swipe right" for example, the return of CAPT_getTrackpad_Gesture(&my_Trackpad) will be "swipe_right" forever until I got another type of gesture.
But what if I want to allow the user to make several swipe right in a row ?? How I know the swap right is a new one, and not the last one ? In other terms, how to "reset" the gesture to "no gesture" ?
Or maybe I'm not looking at it the good way ?
Thanks for your help.
