PinchInfo¶
-
public class
PinchInfo
¶ A class containing pinch information.
Fields¶
-
public float
pinchLevel
¶ Returns pinch (thumb & index) level of the hand, within [0, 1], higher means more possible to pinch. If you only need a boolean value for pinch or not, you can use
isPinching
instead.
Methods¶
-
public boolean
isPinching
()¶ Returns if thumb & index finger is pinching or not. If you need a range value within [0, 1], you can use
pinchLevel
instead.Returns: Is currently pinching or not.