ScreenTapGestureΒΆ

Properties:

Methods:

class Leap::ScreenTapGesture

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

https://di4564baj7skl.cloudfront.net/documentation/v2/images/Leap_Gesture_Tap2.png

Public Functions

ScreenTapGesture()

Constructs a new ScreenTapGesture object.

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

ScreenTapGesture(Gesture rhs)

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

if (gesture.Type == Gesture.GestureType.TYPE_SCREEN_TAP) {
    ScreenTapGesture screentapGesture = new ScreenTapGesture (gesture);
}

Parameters

Property

Vector Direction

The direction of finger tip motion.

Vector pokeDirection = screentap.Direction;

Return
Vector A unit direction vector.

Pointable Pointable

The finger performing the screen tap gesture.

Pointable poker = screentap.Pointable;

Return
Pointable A Pointable object representing the tapping finger.

Vector Position

The position where the screen tap is registered.

Vector pokeLocation = screentap.Position;

Return
Vector A Vector containing the coordinates of screen tap location.

float Progress

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

Return
float The value 1.0.

Public Static Functions

The screen tap gesture type.

if (gesture.Type == ScreenTapGesture.ClassType ()) {
    ScreenTapGesture screentapGesture = new ScreenTapGesture (gesture);
}

Return
Type The type value designating a screen tap gesture.