Ejemplo n.º 1
0
 private void OnFrameCallback(ref DUOFrame pFrameData)
 {
     if (DUOFrameReceived != null)
     {
         DUOFrameReceived(this, ref pFrameData);
     }
 }
Ejemplo n.º 2
0
        private static void OnFrameCallback(ref DUOFrame pFrameData, IntPtr pUserData)
        {
            if (pUserData == IntPtr.Zero)
            {
                return;
            }
            GCHandle  gch    = GCHandle.FromIntPtr(pUserData);
            DUODevice device = gch.Target as DUODevice;

            if (device == null)
            {
                return;
            }
            device.OnFrameCallback(ref pFrameData);
        }