Methods:
The ScreenTapGesture class represents a tapping gesture by a finger or tool.
Public Functions
Public Static FunctionsVector direction()The direction of finger tip motion.
Vector pokeDirection = screentap.direction();
- Return
- Vector A unit direction vector.
Pointable pointable()Vector position()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(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); }
- Parameters
- rhs -
The Gesture instance to specialize. This Gesture instance must be a ScreenTapGesture object.
Gesture.Type classType()The screen tap gesture type.
if(gesture.type() == ScreenTapGesture.classType()) { ScreenTapGesture screentapGesture = new ScreenTapGesture(gesture); }
- Return
- Type The type value designating a screen tap gesture.