public virtual void SetKeyBitmap(int keyId, KeyBitmap bitmapData) { keyId = hwInfo.ExtKeyIdToHardwareKeyId(keyId); var payload = hwInfo.GeneratePayload(bitmapData); foreach (var report in OutputReportSplitter.Split(payload, buffer, hwInfo.ReportSize, hwInfo.HeaderSize, keyId, hwInfo.PrepareDataForTransmittion)) { deckHid.WriteReport(report); } }
public virtual void SetKeyBitmap(int keyId, KeyBitmap bitmapData) { keyId = hardwareInformation.ExtKeyIdToHardwareKeyId(keyId); var payload = hardwareInformation.GeneratePayload(bitmapData); reportGenerator.Initialize(payload, keyId); while (reportGenerator.HasNextReport) { deckHid.WriteReport(reportGenerator.GetNextReport()); } }