예제 #1
0
        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);
            }
        }
예제 #2
0
        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());
            }
        }