Class: KeyTapGesture

KeyTapGesture

The KeyTapGesture class represents a tapping gesture by a finger or tool.

A key tap gesture is recognized when the tip of a finger rotates down toward the palm and then springs back to approximately the original postion, as if tapping. The tapping finger must pause briefly before beginning the tap.

Important: To use key tap gestures in your application, you must enable recognition of the key tap gesture. You can enable recognition with:

TODO

Key tap gestures are discrete. The KeyTapGesture object representing a tap always has the state, STATE_STOP. Only one KeyTapGesture object is created for each key tap gesture recognized.

new KeyTapGesture()

Constructs a new KeyTapGesture object.

An uninitialized KeyTapGesture object is considered invalid. Get valid instances of the KeyTapGesture class from a Frame object.

Source:
  • gesture.js, line 342

Members

direction :Vector

The direction of finger tip motion.

Type:
  • Vector
Source:
  • gesture.js, line 375

position :Vector

The position where the key tap is registered.

Type:
  • Vector
Source:
  • gesture.js, line 368

progress :Number

The progess value is always 1.0 for a key tap gesture.

Type:
  • Number
Source:
  • gesture.js, line 382