mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-04-07 05:56:49 +02:00
Fixed a bug described in #664 issue where gyro mouse doesn't get correct properties (for example toggle option) right after Startup or Hotplug LoadProfile calls. The mouse object was created after LoadProfile function even when LoadProfile function tries to set few properties of that mouse object.
This commit is contained in:
parent
4f87d24ee3
commit
456145cf8e
@ -403,6 +403,9 @@ namespace DS4Windows
|
||||
device.SyncChange += this.On_SyncChange;
|
||||
device.SyncChange += DS4Devices.UpdateSerial;
|
||||
device.SerialChange += this.On_SerialChange;
|
||||
|
||||
touchPad[i] = new Mouse(i, device);
|
||||
|
||||
if (!useTempProfile[i])
|
||||
{
|
||||
if (device.isValidSerial() && containsLinkedProfile(device.getMacAddress()))
|
||||
@ -417,7 +420,6 @@ namespace DS4Windows
|
||||
LoadProfile(i, false, this, false, false);
|
||||
}
|
||||
|
||||
touchPad[i] = new Mouse(i, device);
|
||||
device.LightBarColor = getMainColor(i);
|
||||
|
||||
if (!getDInputOnly(i) && device.isSynced())
|
||||
@ -641,6 +643,9 @@ namespace DS4Windows
|
||||
device.SyncChange += this.On_SyncChange;
|
||||
device.SyncChange += DS4Devices.UpdateSerial;
|
||||
device.SerialChange += this.On_SerialChange;
|
||||
|
||||
touchPad[Index] = new Mouse(Index, device);
|
||||
|
||||
if (!useTempProfile[Index])
|
||||
{
|
||||
if (device.isValidSerial() && containsLinkedProfile(device.getMacAddress()))
|
||||
@ -655,7 +660,6 @@ namespace DS4Windows
|
||||
LoadProfile(Index, false, this, false, false);
|
||||
}
|
||||
|
||||
touchPad[Index] = new Mouse(Index, device);
|
||||
device.LightBarColor = getMainColor(Index);
|
||||
|
||||
int tempIdx = Index;
|
||||
|
Loading…
x
Reference in New Issue
Block a user