Notice Gestures are deprecated in version 3.0 and may not behave the same as they did in earlier versions.


class com::leapmotion::leap::ScreenTapGesture

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

Public Functions

Vector direction()

The direction of finger tip motion.

Vector pokeDirection = screentap.direction();

Vector A unit direction vector.

Pointable pointable()

The finger performing the screen tap gesture.

Pointable poker = screentap.pointable();

Pointable A Pointable object representing the tapping finger.

Vector position()

The position where the screen tap is registered.

Vector pokeLocation = screentap.position();

Vector A Vector containing the coordinates of screen tap location.

float progress()

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

float The value 1.0.


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.Type.TYPE_SCREEN_TAP) {
    ScreenTapGesture screentapGesture = new ScreenTapGesture(gesture);


Public Static Functions

Gesture.Type classType()

The screen tap gesture type.

if(gesture.type() == ScreenTapGesture.classType()) {
    ScreenTapGesture screentapGesture = new ScreenTapGesture(gesture);

Type The type value designating a screen tap gesture.