Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 public virtual int InitInput()
 {
     if (main == null)
     {
         main = this;
     }
     else if (main != this)
     {
         // TODO:
     }
     Library.Init();
     //
     if (!string.IsNullOrEmpty(configPath))
     {
         IniReader ir = IniReader.Open(Environment.CONFIG_PATH + configPath);
         if (ir != null)
         {
             ReadConfig(ir);
         }
     }
     //
     for (int i = 0, imax = points.Length; i < imax; ++i)
     {
         points[i].OnStart(this);
     }
     //
     Open();
     return(0);
 }
Esempio n. 2
0
 public void OnStart(XHawkServiceBase i_tracker)
 {
     tracker = i_tracker;
     if (!string.IsNullOrEmpty(poseName))
     {
         pose = CrossInputManager.VirtualPoseReference(i_tracker, poseName, true);
     }
 }