Most visited

Recently visited

DragListener

public interface DragListener

com.viro.core.DragListener


Callback interface for responding to drag events, which occur when the Controller pressed down on a Node with a button, holds it, and then drags the Node.

Summary

Public methods

abstract void onDrag(int source, Node node, Vector worldLocation, Vector localLocation)

Callback when a drag motion (click down, then move) is detected for the given Node.

Public methods

onDrag

void onDrag (int source, 
                Node node, 
                Vector worldLocation, 
                Vector localLocation)

Callback when a drag motion (click down, then move) is detected for the given Node.

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 that is being dragged.

worldLocation Vector: The location in world coordinates to which the Node is being dragged.

localLocation Vector: The location in the coordinate system of the Node's parent to which the Node is being dragged.

Hooray!