KeyTapGestureΒΆ

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

Inherits Gesture.

Public Member Functions

Vector direction ()
 The direction of finger tip motion. More...
 
 KeyTapGesture ()
 Constructs a new KeyTapGesture object. More...
 
 KeyTapGesture (Gesture rhs)
 Constructs a KeyTapGesture object from an instance of the Gesture class. More...
 
Pointable pointable ()
 The finger performing the key tap gesture. More...
 
Vector position ()
 The position where the key tap is registered. More...
 
float progress ()
 The progress value is always 1.0 for a key tap gesture. More...
 
- Public Member Functions inherited from Gesture
long duration ()
 The elapsed duration of the recognized movement up to the frame containing this Gesture object, in microseconds. More...
 
float durationSeconds ()
 The elapsed duration in seconds. More...
 
boolean equals (Gesture rhs)
 Compare Gesture object equality. More...
 
Frame frame ()
 The Frame containing this Gesture instance. More...
 
 Gesture ()
 Constructs a new Gesture object. More...
 
 Gesture (Gesture rhs)
 Constructs a new copy of an Gesture object. More...
 
HandList hands ()
 The list of hands associated with this Gesture, if any. More...
 
int id ()
 The gesture ID. More...
 
boolean isValid ()
 Reports whether this Gesture instance represents a valid Gesture. More...
 
PointableList pointables ()
 The list of fingers and tools associated with this Gesture, if any. More...
 
Gesture.State state ()
 The gesture state. More...
 
String toString ()
 A string containing a brief, human-readable description of this Gesture. More...
 
Gesture.Type type ()
 The gesture type. More...
 

Static Public Member Functions

static Gesture.Type classType ()
 The key tap gesture type. More...
 
- Static Public Member Functions inherited from Gesture
static Gesture invalid ()
 Returns an invalid Gesture object. More...
 

Detailed Description

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();
Deprecated:
3.0

Constructor & Destructor Documentation

Constructs a new KeyTapGesture object.

Deprecated:
3.0

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

if(gesture.type() == KeyTapGesture.classType()) {
KeyTapGesture keytapGesture = new KeyTapGesture(gesture);
}
Deprecated:
3.0

Member Function Documentation

static Gesture.Type classType ( )
static

The key tap gesture type.

if(gesture.type() == KeyTapGesture.classType()) {
KeyTapGesture keytapGesture = new KeyTapGesture(gesture);
}
Returns
Type The type value designating a key tap gesture.
Deprecated:
3.0
Vector direction ( )

The direction of finger tip motion.

Vector tapDirection = keytap.direction();
Returns
Vector A unit direction vector if the finger tip is moving; otherwise, a zero-vector.
Deprecated:
3.0
Pointable pointable ( )

The finger performing the key tap gesture.

Pointable tappingPointable = keytap.pointable();
Returns
Pointable A Pointable object representing the tapping finger.
Deprecated:
3.0
Vector position ( )

The position where the key tap is registered.

Vector tapPosition = keytap.position();
Returns
Vector A Vector containing the coordinates of tap location.
Deprecated:
3.0
float progress ( )

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

Returns
float The value 1.0.
Deprecated:
3.0