Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using UnityEngine;
public class TouchEventTest : MonoBehaviour {
void Start () {
GearVRHelper.OnBackHold += () => {
Debug.Log("BACK HOLD!");
};
GearVRHelper.OnBackPush += () => {
Debug.Log("BACK PUSH!");
};
GearVRHelper.OnTap += () => {
Debug.Log("Tap!");
};
GearVRHelper.OnFlick += (x, y) => {
Debug.Log("Flick:" + x + "," + y);
};
GearVRHelper.OnDrag += (x, y) => {
Debug.Log("Drag:" + x + "," + y);
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.