Example #1
0
 void OnApplicationQuit()
 {
     if (FingoManager.ReleaseAllDevices())
     {
         Debug.Log("Fingo Manager Release Success!");
     }
 }
Example #2
0
 /// <summary>
 /// Set the head tracking function enable or disable.
 /// </summary>
 /// <param name="enable"> Enable or disable head tracking. </param>
 /// <returns> Setting hand tracking enable or disable success. </returns>
 public bool SetHeadTrackingEnable(bool enable)
 {
     if (FingoManager.SetHeadTrackingEnable(enable))
     {
         enableHeadTracking = enable;
         return(true);
     }
     return(false);
 }
Example #3
0
 /// <summary>
 /// Set color image enable or disable.
 /// </summary>
 /// <param name="enable"> Enable or disable get color image. </param>
 /// <returns> Setting color image enable or disable success. </returns>
 public bool SetRGBImageEnable(bool enable)
 {
     if (FingoManager.SetRGBImageEnable(enable))
     {
         enableColorImage = enable;
         return(true);
     }
     return(false);
 }
Example #4
0
 /// <summary>
 /// Set infrared image enable or disable.
 /// </summary>
 /// <param name="enable"> Enable or disable get infrared image. </param>
 /// <returns> Setting infrared image enable or disable success. </returns>
 public bool SetIRImageEnable(bool enable)
 {
     if (FingoManager.SetIRImageEnable(enable))
     {
         enableInfraredImage = enable;
         return(true);
     }
     return(false);
 }
Example #5
0
 /// <summary>
 /// Set the gesture detection enable or disable.
 /// </summary>
 /// <param name="enable"> Enable or disable gesture detection or not. </param>
 /// <returns> Setting gesture detection enable or disable success. </returns>
 public bool SetGestureDetectionEnable(bool enable)
 {
     if (FingoManager.SetGestureDetectionEnable(enable))
     {
         enableGestureDetection = enable;
         return(true);
     }
     return(false);
 }
Example #6
0
 void Awake()
 {
     if (FingoManager.Initialize(enableHandTracking, enableGestureDetection, enableInfraredImage, enableColorImage, enableHeadTracking))
     {
         Debug.Log("Fingo Manager Initialize Success!");
     }
     else
     {
         Debug.Log("Fingo Manager Initialize Failed!");
     }
 }
Example #7
0
 /// <summary>
 /// Get infrared image data corresponding to the particular eye type currently tracked
 /// </summary>
 /// <param name="eye"> The eye type of the color image. </param>
 /// <returns> The color image of the eye. </returns>
 public Image GetRGBImage(EyeType eye)
 {
     return(FingoManager.GetRGBImage(eye));
 }
Example #8
0
 /// <summary>
 /// Get infrared image data corresponding to the particular eye type currently tracked
 /// </summary>
 /// <param name="eye"> The eye type of the infrared image. </param>
 /// <returns> The infrared image of the eye. </returns>
 public Image GetInfraredImage(EyeType eye)
 {
     return(FingoManager.GetInfraredImage(eye));
 }
Example #9
0
 /// <summary>
 /// Reset the positional tracking.
 /// </summary>
 public void ResetHeadTracking()
 {
     FingoManager.ResetHeadTracking();
     FingoManager.InitHeadTracking();
 }
Example #10
0
 /// <summary>
 /// Set the gesture detection mode.
 /// </summary>
 /// <param name="detectionMode"> The target mode of gesture detection. </param>
 /// <returns> Setting gesture detection mode success. </returns>
 public bool SetGestureDetectionMode(GestureDetectionMode detectionMode)
 {
     return(FingoManager.SetGestureDetectionMode(detectionMode));
 }
Example #11
0
 /// <summary>
 /// Get the hand data corresponding to the particular hand type currently tracked
 /// </summary>
 /// <param name="handtype"> Hand type of the hand. </param>
 /// <returns> The hand data of this hand. </returns>
 public Hand GetHand(HandType handtype)
 {
     return(FingoManager.GetHand(handtype));
 }
Example #12
0
 /// <summary>
 /// Set enable or disable stabilizer to hand data.
 /// </summary>
 /// <param name="enableStabilizer"> Enable or disable stabilizer. </param>
 public void SetHandStabilizer(bool enableStabilizer)
 {
     FingoManager.EnableHandStabilizer(enableStabilizer);
 }
Example #13
0
 /// <summary>
 /// Set enable or disable time warping to hand data.
 /// </summary>
 /// <param name="enableTimeWarping"> Enable or disable time warping. </param>
 public void SetHandTimeWarping(bool enableTimeWarping)
 {
     FingoManager.EnableHandTimeWarping(enableTimeWarping);
 }
Example #14
0
 /// <summary>
 /// Get the hand raw data corresponding to the particular hand type currently tracked
 /// </summary>
 /// <param name="handtype"> Hand type of the hand. </param>
 /// <returns> The hand raw data of this hand. </returns>
 public HandRawData GetRawHandData(HandType handtype)
 {
     return(FingoManager.GetRawHandData(handtype));
 }
Example #15
0
 /// <summary>
 /// Get the gesture detection mode.
 /// </summary>
 /// <returns> The gesture detection mode using right now. </returns>
 public GestureDetectionMode GetGestureDetectionMode()
 {
     return(FingoManager.GetGestureDetectionMode());
 }
Example #16
0
 /// <summary>
 /// Test the capability of Fingo devices.
 /// </summary>
 /// <param name="deviceCapability"> The device capability. </param>
 /// <returns> Capable of the devices. </returns>
 public bool TestDevicesCapability(FingoCapability deviceCapability)
 {
     return(FingoManager.TestCapability(deviceCapability));
 }
Example #17
0
 /// <summary>
 /// Get the Head instance currently tracked
 /// </summary>
 /// <returns> The head data from Fingo. </returns>
 public Head GetHead()
 {
     return(FingoManager.GetHead());
 }