--JPGesture API JPGesture.activate ( sUserToken, sActivationKey ) JPGesture.setLongPressDelay ( nLongPressDelay ) --User notification events: "onGesturePending" ( kGestureType, nInputCount, nRotation, nStartPositionX, nStartPositionY, nEndPositionX, nEndPositionY, nStartDistance, nEndDistance ) "onGestureDetected" ( kGestureType, nInputCount, nRotation, nStartPositionX, nStartPositionY, nEndPositionX, nEndPositionY, nStartDistance, nEndDistance ) "onGestureAborted" ( ) --Gesture types JPGesture.kGestureTypeNone JPGesture.kGestureTypeTap JPGesture.kGestureTypeLongPress JPGesture.kGestureTypeSwipeDown JPGesture.kGestureTypeSwipeUp JPGesture.kGestureTypeSwipeLeft JPGesture.kGestureTypeSwipeRight JPGesture.kGestureTypePinchIn JPGesture.kGestureTypePinchOut JPGesture.kGestureTypeShakeX JPGesture.kGestureTypeShakeY JPGesture.kGestureTypeShakeZ
JPGesture is a pack for multi-touch gesture and device shaking detection.
It detects the majority of usual gestures:
JPGesture also detects:
JPGesture will inform you in real time of the gesture the user is currently drawing on the screen with the "onGesturePending" handler. Once the user has finished the gesture, you will be notified through the "onGestureDetected" event.