Skip to content

Instantly share code, notes, and snippets.

@neon-izm
Forked from divide-by-zero/TouchEventTest.cs
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neon-izm/f88da5414d751c56c735 to your computer and use it in GitHub Desktop.
Save neon-izm/f88da5414d751c56c735 to your computer and use it in GitHub Desktop.
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