Exemple #1
0
        public GenericHIDDevice(int inx, AndroidJavaObject device, IHIDInterface hidInterface)
            : base(inx, device.Get <int>("VID"), device.Get <int>("PID"), device.Get <string>("path"), IntPtr.Zero, hidInterface, device.Get <string>("path"))
        {
            __lastHIDReport = new HIDReport(this.index, new byte[_InputReportByteLength], HIDReport.ReadStatus.Success);

            _device   = device;
            _listener = new ReadWriteListenerProxy();
        }
        public GenericHIDDevice(int inx, AndroidJavaObject device, IHIDInterface hidInterface)
			: base(inx, device.Get<int>("VID"), device.Get<int>("PID"),device.Get<string>("path"), IntPtr.Zero, hidInterface, device.Get<string>("path"))
        {


            __lastHIDReport = new HIDReport(this.index, new byte[_InputReportByteLength], HIDReport.ReadStatus.Success);
             
            _device=device;
            _listener = new ReadWriteListenerProxy();
        }