08-08-2018 01:24 AM
void Update ()
{
OVRInput.Update();
Debug.Log("Update");
if (OVRInput.Get(OVRInput.Button.Back))
OVRPlugin.ShowUI(new OVRPlugin.PlatformUI());
if (OVRInput.GetDown(OVRInput.Button.Back))
OVRPlugin.ShowUI(new OVRPlugin.PlatformUI());
}
public VRTK_ControllerEvents m_Event;
private void Start()
{
m_Event.ButtonTwoPressed += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
m_Event.ButtonTwoReleased += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
m_Event.ButtonTwoTouchStart += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
m_Event.ButtonTwoTouchEnd += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
}
08-08-2018 01:27 AM
08-14-2018 12:59 PM
08-14-2018 01:32 PM
if (OVRInput.Get (OVRInput.Button.Back)) {
OVRDebugInfo.print ("pressed back button");
OVRManager.PlatformUIConfirmQuit ();
}
08-15-2018 08:32 AM
08-15-2018 10:25 AM
10-17-2018 08:15 AM
11-08-2018 01:41 PM
11-16-2018 08:59 AM
11-27-2018 05:14 AM