Exemplo n.º 1
0
        public HandFacade()
        {
            // if the LeapPlugin is not already instantiated, we do it
            if (LeapPlugin.Instance == null)
            {
                LeapPlugin temp = new LeapPlugin();
            }

            Subscribe();
            Main.RegisterFacade(this);
        }
Exemplo n.º 2
0
 public LeapPlugin()
 {
     if (m_Instance == null)
     {
         m_Instance = this;
         m_LeapListener = new LeapListener();
     }
     else
     {
         throw new LeapException("LeapPlugin is already instancied");
     }
 }
Exemplo n.º 3
0
        public PostureShifumiFacade()
        {
            // if the LeapPlugin is not already instantiated, we do it
            if (LeapPlugin.Instance == null)
            {
                LeapPlugin temp = new LeapPlugin();
            }

            this.m_enableRockPosture = false;
            this.m_enableScissorsPosture = false;
            this.m_enablePaperPosture = false;

            EnableRockPosture = true;
            EnableScissorsPosture = true;
            EnablePaperPosture = true;

            Main.RegisterFacade(this);
        }
Exemplo n.º 4
0
        public GestureFacade()
        {
            // if the LeapPlugin is not already instantiated, we do it
            if (LeapPlugin.Instance == null)
            {
                LeapPlugin temp = new LeapPlugin();
            }

            this.m_enableSwipeLeftGesture = false;
            this.m_enableSwipeRightGesture = false;
            this.m_enableTapGesture = false;

            EnableSwipeLeftGesture = true;
            EnableSwipeRightGesture = true;
            EnableTapGesture = true;

            Main.RegisterFacade(this);
        }
Exemplo n.º 5
0
        public PostureFingerCountFacade()
        {
            // if the LeapPlugin is not already instantiated, we do it
            if (LeapPlugin.Instance == null)
            {
                LeapPlugin temp = new LeapPlugin();
            }

            this.m_enableZeroPosture = false;
            this.m_enableOnePosture = false;
            this.m_enableTwoPosture = false;
            this.m_enableThreePosture = false;
            this.m_enableFourPosture = false;
            this.m_enableFivePosture = false;

            EnableZeroPosture = true;
            EnableOnePosture = true;
            EnableTwoPosture = true;
            EnableThreePosture = true;
            EnableFourPosture = true;
            EnableFivePosture = true;

            Main.RegisterFacade(this);
        }
Exemplo n.º 6
0
 /// <summary>
 /// Clear the resources
 /// </summary>
 public void Dispose()
 {
     if (m_Instance != null)
     {
         m_LeapListener.Dispose();
         m_Instance = null;
     }
 }