Most visited

Recently visited

TouchpadScrollListener

public interface TouchpadScrollListener

com.viro.core.TouchpadScrollListener


Callback interface for responding to touchpad scroll events, which occur when the finger is used to scroll up or down while hovering over a Node in a touchpad Controller.

Summary

Public methods

abstract void onScroll(int source, Node node, float x, float y)

Callback when a scrolling gesture is detected on the touchpad while hovering over the given Node.

Public methods

onScroll

void onScroll (int source, 
                Node node, 
                float x, 
                float y)

Callback when a scrolling gesture is detected on the touchpad while hovering over 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 being hovered over while the scroll gesture is taking place.

x float: The X coordinate on the touchpad where the event occurred.

y float: The Y coordinate on the touchpad where the event occurred.

Hooray!