public void StartNoloDevice() { var path = @"NoloServer\NoloServer.exe"; if (File.Exists(path)) { NoloClientLib.StartNoloServer(@"NoloServer\NoloServer.exe"); } NoloClientLib.OpenNoloZeroMQ(); }
public void Start() { Stop(); var path = @"NoloServer\NoloServer.exe"; //if (File.Exists(path)) //NoloClientLib.StartNoloServer(@"NoloServer\NoloServer.exe"); m_IsRunning = NoloClientLib.OpenNoloZeroMQ(); if (m_IsRunning) { m_Thread = new Thread(new ThreadStart(ThreadLoop)); m_Thread.Start(); StatusLabel.Text = "Started"; } else { StatusLabel.Text = "Not Started"; } }
public override bool InitDevice() { if (playformError == NoloError.None) { return(true); } try { Debug.Log("NoloVR_WinPlayform InitDevice"); disconn = new pfnVoidCallBack(DisConnectedCallBack); conn = new pfnVoidCallBack(ReconnectDeviceCallBack); NoloClientLib.RegisterCallBack(ECallBackTypes.eOnZMQDisConnected, Marshal.GetFunctionPointerForDelegate(disconn)); NoloClientLib.RegisterCallBack(ECallBackTypes.eOnZMQConnected, Marshal.GetFunctionPointerForDelegate(conn)); NoloClientLib.OpenNoloZeroMQ(); playformError = NoloError.None; } catch (Exception ex) { Debug.Log("NoloVR_WinPlayform InitDevice:" + ex.Message); playformError = NoloError.ConnectFail; return(false); } return(true); }
public void StartNoloDevice() { //NoloClientLib.StartNoloServer(@"NoloServer\NoloServer.exe"); NoloClientLib.OpenNoloZeroMQ(); }