private void InitLeapSensorAndRegisterToEvents() { _listener = new MotionListener(); _controller = new Controller(); _controller.AddListener(_listener); _listener.OnHandMoveOn += _listener_OnHandMoveOn; }
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; }