Most visited

Recently visited

TouchpadTouchListener

public interface TouchpadTouchListener

com.viro.core.TouchpadTouchListener


Callback interface for responding to touchpad touch events, which occur when a finger interacts with a touchpad Controller.

Summary

Public methods

abstract void onTouch(int source, Node node, TouchState touchState, float x, float y)

Callback when a touchpad touch event is received, meaning the user has placed and/or moved a finger on a touchpad controller while hovering over the given Node.

Public methods

onTouch

void onTouch (int source, 
                Node node, 
                TouchState touchState, 
                float x, 
                float y)

Callback when a touchpad touch event is received, meaning the user has placed and/or moved a finger on a touchpad controller 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 when the touch is received.

touchState TouchState: The state of the touch; e.g. down, up, moving.

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!