protected void OnHidReportReceived(ScpHidReport report) { _inputReportQueue.Enqueue(() => Task.Run(() => { if (HidReportReceived != null) { HidReportReceived.Invoke(this, report); } })); }
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); } } }
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); } } }