Properties:
Methods:
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 ();Public FunctionsPropertyKeyTapGesture()Constructs a new KeyTapGesture object.
KeyTapGesture(Gesture rhs)Constructs a KeyTapGesture object from an instance of the Gesture class.
if(gesture.Type == KeyTapGesture.ClassType()) { KeyTapGesture keytapGesture = new KeyTapGesture(gesture); }Public Static FunctionsVector Direction
The direction of finger tip motion.
Vector tapDirection = keytap.Direction;
- Return
- Vector A unit direction vector if the finger tip is moving; otherwise, a zero-vector.
Pointable Pointable
Vector Position
float Progress
The progress value is always 1.0 for a key tap gesture.
- Return
- float The value 1.0.
Gesture.GestureType ClassType()The key tap gesture type.
if(gesture.Type == KeyTapGesture.ClassType()) { KeyTapGesture keytapGesture = new KeyTapGesture(gesture); }
- Return
- Type The type value designating a key tap gesture.