예제 #1
0
 private void InitLeapSensorAndRegisterToEvents()
 {
     _listener = new MotionListener();
     _controller = new Controller();
     _controller.AddListener(_listener);
     _listener.OnHandMoveOn += _listener_OnHandMoveOn;
 }
예제 #2
0
 private void InitLeapSensorAndRegisterToEvents()
 {
     _listener   = new MotionListener();
     _controller = new Controller();
     _controller.AddListener(_listener);
     _listener.OnHandMoveOn += _listener_OnHandMoveOn;
 }
예제 #3
0
        private void InitLeapSensorAndRegisterToEvents()
        {
            _listener   = new MotionListener();
            _controller = new Controller();

            _controller.Connect    += _listener.OnServiceConnect;
            _controller.Device     += _listener.OnConnect;
            _controller.FrameReady += _listener.OnFrame;

            _listener.OnHandMoveOn += _listener_OnHandMoveOn;
        }