Ejemplo n.º 1
0
 internal void Init(OpenNIManager manager)
 {
     _manager = manager;
     _handsGenerator = _manager.ONIContext.FindExistingNode(NodeType.Hands) as HandsGenerator;
     _handsGenerator.HandCreate += new HandsGenerator.HandCreateHandler(_handGenerator_HandCreate);
     _handsGenerator.HandDestroy += new HandsGenerator.HandDestroyHandler(_handGenerator_HandDestroy);
     _handsGenerator.HandUpdate += new HandsGenerator.HandUpdateHandler(_handGenerator_HandUpdate);
     _handsGenerator.GenerationRunningChanged += new StateChangedHandler(_handsGenerator_GenerationRunningChanged);
     _handsGenerator.StartGenerating();
 }