Make sure to add device serial to HashSet when DS4Device instance is created

Make sure USB charging does not create second DS4Device instance
This commit is contained in:
Travis Nickles 2017-10-11 18:07:34 -05:00
parent 73450834bc
commit 320c3ee6f6

View File

@ -123,6 +123,7 @@ namespace DS4Windows
//ds4Device.Removal += On_Removal;
Devices.Add(hDevice.DevicePath, ds4Device);
DevicePaths.Add(hDevice.DevicePath);
deviceSerials.Add(serial);
}
}
}