internal void AddSemaphoreTracking()
 {
     Semaphore = new SemaphoreViewModel();
     Semaphore.PropertyChanged          += SemaphorePropertyChanged;
     _semaphoreGesture                   = _user.AddSemaphoreTouchGesture();
     _semaphoreGesture.SemafoorDetected += _semaphoreGesture_SemafoorDetected;
 }
 internal void RemoveSemaphoreTracking()
 {
     _semaphoreGesture.SemafoorDetected -= _semaphoreGesture_SemafoorDetected;
     //TODO Remove Semaphore gesture logic
     //_user.RemoveSemaphoreTouchGesture();
     _semaphoreGesture = null;
     Semaphore         = null;
 }
Esempio n. 3
0
    public bool ReceiveGesture(SemaphoreGesture sg)
    {
        if (sg.Equals(flagsRequired[0]))
        {
            ResolveGesture();
        }

        return(solved);
    }
Esempio n. 4
0
    /*
     * Gesture Recog
     */
    private void RecalculateCurrentGesture()
    {
        if (currLeftHandPostion != null && currRightHandPostion != null)
        {
            currentGesture = new SemaphoreGesture(currLeftHandPostion, currRightHandPostion);
        }

        Debug.Log("New player pose ::: [Left: " + currLeftHandPostion + "], [Right: " + currRightHandPostion + "]");
        BroadcastGesture();
    }
Esempio n. 5
0
 public bool Equals(SemaphoreGesture sg)
 {
     if (sg.left == this.left && sg.right == this.right)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }