Most visited

Recently visited

GesturePinchListener

public interface GesturePinchListener

com.viro.core.GesturePinchListener


Callback interface for responding to pinch events, which occur when the user pinches with two fingers on the screen.

Summary

Public methods

abstract void onPinch(int source, Node node, float scaleFactor, PinchState pinchState)

Callback when a two-finger pinch gesture is detected on the Controller screen.

Public methods

onPinch

void onPinch (int source, 
                Node node, 
                float scaleFactor, 
                PinchState pinchState)

Callback when a two-finger pinch gesture is detected on the Controller screen. This is used in AR.

Parameters
source int: The platform specific source ID, which indicates what button or component on the Controller triggered the event. See the Controller's Guide for information.

node Node: The Node on which the gesture is being performed.

scaleFactor float: The scale factor change since the beginning of the event; specifically, since receiving the PINCH_START state. Scale starts at 1.0 and increases if pinches outward and decreases if pinched inward.

pinchState PinchState: The state of the pinch event.

Hooray!