コード例 #1
0
        public void StartNoloDevice()
        {
            var path = @"NoloServer\NoloServer.exe";

            if (File.Exists(path))
            {
                NoloClientLib.StartNoloServer(@"NoloServer\NoloServer.exe");
            }

            NoloClientLib.OpenNoloZeroMQ();
        }
コード例 #2
0
        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";
            }
        }
コード例 #3
0
 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);
 }
コード例 #4
0
 public void StartNoloDevice()
 {
     //NoloClientLib.StartNoloServer(@"NoloServer\NoloServer.exe");
     NoloClientLib.OpenNoloZeroMQ();
 }