Example #1
0
        public bool SetNumberInputBuffers(int buffers)
        {
            lock (lockObject)
            {
                if (reference == null)
                {
                    throw new InvalidOperationException("The HID reference is null.");
                }
                else if (reference.IsInvalid)
                {
                    throw new InvalidOperationException("The HID reference is invalid");
                }

                return(Hid.HidD_SetNumInputBuffers(reference, buffers));
            }
        }
Example #2
0
 public void SetNumInputBuffers(uint numberBuffers)
 {
     Hid.HidD_SetNumInputBuffers(Handle, (int)numberBuffers);
 }