JPGesture

JPGesture

Multitouch gestures detection
Version : 2.0
Price : $25
State : Out

Changelog

v2.0

  • Now compatible with ShiVa 2.0.
  • Plugin API compiled for Mac and Linux in addition to Windows : it will provide API completion in the Script module in ShiVa Editor for each of these operating systems.
  • Now uses a user token instead of an email to activate

v1.8

  • JPGesture now detects gestures on the Z axis.
  • New constant : - JPGesture.kGestureTypeShakeZ
  • JPGesture.kGestureTypeShakeHorizontal has been renamed JPGesture.kGestureTypeShakeX
  • JPGesture.kGestureTypeShakeVertical has been renamed JPGesture.kGestureTypeShakeY

v1.7

  • Tap and LongPress are no longer triggered if the finger was moved.
  • Notification events now work with gesture type constants instead of strings. New JPGesture.kGestureTypeXXX constants are available.

v1.6

  • Optimized for ShiVa 1.9.2

v1.5

  • Fixed issues with the nRotation parameter (was often 0)

v1.4

  • New parameter nRotation available for the onGesturePending and onGestureDetected events.
  • New parameter nInputCount available for the onGesturePending and onGestureDetected events.
  • New parameters nBeginDist and nEndDist to allow manipulations with pinches
  • Double swipes gestures types removed. It has been replaced by the simple gesture events plus the nInputCount param, allowing to detect swipes with 1, 2 or more fingers.
  • Every gesture type can be trigered with several fingers (tap with 2 fingers, long press with 2 fingers, pinches with more than 2 fingers, etc)
  • New event onGestureAborted called when the user draws a new gesture on the screen.

v1.3

  • Internal modifications to prevent eventual conflicts between packs.

v1.2

  • Fixed a random issue blocking the activation of the pack

v1.1

  • Error messages now are easier to understand.

API

--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

Description

JPGesture is a pack for multi-touch gesture and device shaking detection.

It detects the majority of usual gestures:

  • Taps
  • Long presses
  • Swipes (up, down, left and right)
  • Pinch in / pinch out All of these gestures can also be detected with up to 5 fingers.

JPGesture also detects:

  • Rotations (for all of the previous gesture events)
  • Horizontal and vertical shaking of the device

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.