WiimoteLib.HIDImports.HidD_SetOutputReport C# (CSharp) Méthode

HidD_SetOutputReport() private méthode

private HidD_SetOutputReport ( IntPtr HidDeviceObject, byte lpReportBuffer, uint ReportBufferLength ) : bool
HidDeviceObject System.IntPtr
lpReportBuffer byte
ReportBufferLength uint
Résultat bool
        internal static extern bool HidD_SetOutputReport(
            IntPtr HidDeviceObject,
            byte[] lpReportBuffer,
            uint ReportBufferLength);

Usage Example

Exemple #1
0
        /// <summary>
        /// Write a report to the Wiimote
        /// </summary>
        private void WriteReport()
        {
            if (mAltWriteMethod)
            {
                HIDImports.HidD_SetOutputReport(this.mHandle.DangerousGetHandle(), mBuff, (uint)mBuff.Length);
            }
            else
            {
                mStream.Write(mBuff, 0, REPORT_LENGTH);
            }

            Thread.Sleep(100);
        }
All Usage Examples Of WiimoteLib.HIDImports::HidD_SetOutputReport