KeyTapGestureΒΆ

Properties:

Methods:

class Leap::KeyTapGesture

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

controller.Config.SetFloat ("Gesture.KeyTap.MinDownVelocity", 40.0f);
controller.Config.SetFloat ("Gesture.KeyTap.HistorySeconds", .2f);
controller.Config.SetFloat ("Gesture.KeyTap.MinDistance", 1.0f);
controller.Config.Save ();

Public Functions

KeyTapGesture()

Constructs a new KeyTapGesture object.

KeyTapGesture(Gesture rhs)

Constructs a KeyTapGesture object from an instance of the Gesture class.

if(gesture.Type == KeyTapGesture.ClassType()) {
    KeyTapGesture keytapGesture = new KeyTapGesture(gesture);
}

Property

Vector Direction

The direction of finger tip motion.

Vector tapDirection = keytap.Direction;

Return
Vector A unit direction vector if the finger tip is moving; otherwise, a zero-vector.

Pointable Pointable

The finger performing the key tap gesture.

Pointable tappingPointable = keytap.Pointable;

Return
Pointable A Pointable object representing the tapping finger.

Vector Position

The position where the key tap is registered.

Vector tapPosition = keytap.Position;

Return
Vector A Vector containing the coordinates of tap location.

float Progress

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

Return
float The value 1.0.

Public Static Functions

The key tap gesture type.

        if(gesture.Type == KeyTapGesture.ClassType()) {
KeyTapGesture keytapGesture = new KeyTapGesture(gesture);
        }

Return
Type The type value designating a key tap gesture.