Esempio n. 1
0
        //public void CreateService()
        //{
        //leapService = new LeapService();
        //}

        private static void InitializeFlags()
        {
            if (leap_controller_ == null)
            {
                return;
            }

            leap_controller_.ClearPolicy(Leap.Controller.PolicyFlag.POLICY_OPTIMIZE_HMD);
        }
Esempio n. 2
0
 /**
  * Initializes the Leap Motion policy flags.
  * The POLICY_OPTIMIZE_HMD flag improves tracking for head-mounted devices.
  */
 void InitializeFlags()
 {
     //Optimize for top-down tracking if on head mounted display.
     if (isHeadMounted)
     {
         leap_controller_.SetPolicy(Controller.PolicyFlag.POLICY_OPTIMIZE_HMD);
     }
     else
     {
         leap_controller_.ClearPolicy(Controller.PolicyFlag.POLICY_OPTIMIZE_HMD);
     }
 }