Most visited

Recently visited

GestureRotateListener

public interface GestureRotateListener

com.viro.core.GestureRotateListener


Callback interface for responding to rotate events, which occur when the user places two fingers on the screen and rotates then clockwise or counterclockwise.

Summary

Public methods

abstract void onRotate(int source, Node node, float rotateRadians, RotateState rotateState)

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

Public methods

onRotate

void onRotate (int source, 
                Node node, 
                float rotateRadians, 
                RotateState rotateState)

Callback when a two-finger rotate 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.

rotateRadians float: The rotation (in radians) of the gesture since the beginning of the event; specifically, since receiving the ROTATE_START state.

rotateState RotateState: The state of the rotate event.

Hooray!