ScreenTapGestureΒΆ

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

Vector direction()

The direction of finger tip motion.

Leap::Vector pokeDirection = screentap.direction();

Return
Vector A unit direction vector.

Pointable pointable()

The finger performing the screen tap gesture.

Leap::Pointable poker = screentap.pointable();

Return
Pointable A Pointable object representing the tapping finger.

Vector position()

The position where the screen tap is registered.

Leap::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.

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(const Gesture & rhs)

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

Leap::ScreenTapGesture screentapGesture = Leap::Gesture::invalid();
if(gesture.type() == Leap::Gesture::TYPE_SCREEN_TAP)
    screentapGesture = Leap::ScreenTapGesture(gesture);

Parameters

Public Static Functions

Type classType()

The screen tap gesture type.

Leap::ScreenTapGesture screentapGesture = Leap::Gesture::invalid();
if(gesture.type() == Leap::ScreenTapGesture::classType())
    screentapGesture = Leap::ScreenTapGesture(gesture);

Return
Type The type value designating a screen tap gesture.