private void handleQuadMessage(ref LEAP_TRACKED_QUAD_EVENT quad_evt) { TrackedQuad quad = frameFactory.makeQuad(ref quad_evt); _quads.Put(quad); this.LeapTrackedQuad.Dispatch <TrackedQuadEventArgs>(this, new TrackedQuadEventArgs(quad)); }
private void handleTrackingMessage(ref LEAP_TRACKING_EVENT trackingMsg) { Frame newFrame = frameFactory.makeFrame(ref trackingMsg); if (_trackedQuadsAreEnabled) { newFrame.TrackedQuad = this.findTrackQuadForFrame(newFrame.Id); } Frames.Put(newFrame); this.LeapFrame.Dispatch <FrameEventArgs>(this, new FrameEventArgs(newFrame)); }