Exemplo n.º 1
0
 protected void OnHidReportReceived(ScpHidReport report)
 {
     _inputReportQueue.Enqueue(() => Task.Run(() =>
     {
         if (HidReportReceived != null)
         {
             HidReportReceived.Invoke(this, report);
         }
     }));
 }
Exemplo n.º 2
0
 protected void OnHidReportReceived(ScpHidReport report)
 {
     if (GlobalConfiguration.Instance.UseAsyncHidReportProcessing)
     {
         _inputReportQueue.Enqueue(() => Task.Run(() => {
             if (HidReportReceived != null)
             {
                 HidReportReceived.Invoke(this, report);
             }
         }));
     }
     else
     {
         if (HidReportReceived != null)
         {
             HidReportReceived.Invoke(this, report);
         }
     }
 }
Exemplo n.º 3
0
        protected void OnHidReportReceived(HidReport.Core.HidReport hidReport)
        {
            _lastHidReport = hidReport;
            var report = NewHidReport(hidReport);

            if (GlobalConfiguration.Instance.UseAsyncHidReportProcessing)
            {
                _inputReportQueue.Enqueue(() => Task.Run(() =>
                {
                    if (HidReportReceived != null)
                    {
                        HidReportReceived.Invoke(this, report);
                    }
                }));
            }
            else
            {
                if (HidReportReceived != null)
                {
                    HidReportReceived.Invoke(this, report);
                }
            }
        }