The LeapKeyTapGesture class represents a tapping gesture by a finger or tool.
More...
Inherits LeapGesture.
The LeapKeyTapGesture class represents a tapping gesture by a finger or tool.
Compare LeapGesture object equality.
[thisGesture equals:thatGesture];
- Parameters
-
The direction of finger tip motion.
- Returns
- LeapVector A unit direction vector.
|
readnonatomicassigninherited |
The elapsed duration of the recognized movement up to the frame containing this LeapGesture object, in microseconds.
int64_t microseconds = gesture.duration;
- Returns
- int64_t the elapsed duration in microseconds.
- (float) durationSeconds |
|
readnonatomicassigninherited |
The elapsed duration in seconds.
float seconds = gesture.duration;
- See also
- duration
- Returns
- float the elapsed duration in seconds.
|
readnonatomicstronginherited |
|
readnonatomicstronginherited |
The list of hands associated with this LeapGesture, if any.
NSArray *handList = gesture.hands;
LeapHand *gesturingHand = [handList objectAtIndex:0];
- Returns
- NSArray the list of related LeapHand objects.
|
readnonatomicassigninherited |
The gesture ID.
int gestureID = gesture.id;
- Returns
- int32_t the ID of this LeapGesture.
|
readnonatomicassigninherited |
Reports whether this LeapGesture instance represents a valid gesture.
LeapGesture *trackedGesture = [frame gesture:trackedGestureID];
{
}
- Returns
- bool Yes, if this is a valid LeapGesture instance; NO, otherwise.
The finger performing the key tap gesture.
- Returns
- A LeapPointable object representing the tapping finger.
|
readnonatomicstronginherited |
The list of fingers and tools associated with this LeapGesture, if any.
NSArray *pointableList = gesture.pointables;
LeapHand *gesturingPointable = [pointableList objectAtIndex:0];
- Returns
- NSArray the list of related LeapPointable objects.
The position where the key tap is registered.
- Returns
- A LeapVector containing the coordinates of key tap location.
The progess value is always 1.0 for a key tap gesture.
- Returns
- float The value 1.0.
- (LeapGestureState) state |
|
readnonatomicassigninherited |
The gesture state.
- Returns
- LeapGestureState A value from the LeapGestureState enumeration.
|
readnonatomicassigninherited |
The gesture type.
LeapGestureType type = gesture.type;
- Returns
- LeapGestureType A value from the LeapGestureType enumeration.