Esempio n. 1
0
 public Dualshock4Controller(HidDevice device, int id)
 {
     _rumble = new RumbleStrength();
     Device = device;
     Device.MonitorDeviceEvents = true;
     _id = id;
     _isUsb = Device.Capabilities.InputReportByteLength == 64;
     _addr = Device.ReadSerial();
     _outputBuffer = _isUsb ? new byte[Device.Capabilities.OutputReportByteLength] : new byte[78];
     Run();
 }