mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-29 12:34:18 +01:00
Change hotplug routine in sync handler
This commit is contained in:
parent
a871e750ee
commit
1bf4642c09
@ -1122,6 +1122,7 @@ namespace DS4Windows
|
|||||||
outputDevices[ind] = null;
|
outputDevices[ind] = null;
|
||||||
useDInputOnly[ind] = true;
|
useDInputOnly[ind] = true;
|
||||||
LogDebug(tempType + " Controller #" + (ind + 1) + " unplugged");
|
LogDebug(tempType + " Controller #" + (ind + 1) + " unplugged");
|
||||||
|
Global.activeOutDevType[ind] = OutContType.None;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1132,6 +1133,7 @@ namespace DS4Windows
|
|||||||
if (conType == OutContType.X360)
|
if (conType == OutContType.X360)
|
||||||
{
|
{
|
||||||
LogDebug("Plugging in X360 Controller #" + (ind + 1));
|
LogDebug("Plugging in X360 Controller #" + (ind + 1));
|
||||||
|
Global.activeOutDevType[ind] = OutContType.X360;
|
||||||
Xbox360OutDevice tempXbox = new Xbox360OutDevice(vigemTestClient);
|
Xbox360OutDevice tempXbox = new Xbox360OutDevice(vigemTestClient);
|
||||||
outputDevices[ind] = tempXbox;
|
outputDevices[ind] = tempXbox;
|
||||||
tempXbox.cont.FeedbackReceived += (eventsender, args) =>
|
tempXbox.cont.FeedbackReceived += (eventsender, args) =>
|
||||||
@ -1145,6 +1147,7 @@ namespace DS4Windows
|
|||||||
else if (conType == OutContType.DS4)
|
else if (conType == OutContType.DS4)
|
||||||
{
|
{
|
||||||
LogDebug("Plugging in DS4 Controller #" + (ind + 1));
|
LogDebug("Plugging in DS4 Controller #" + (ind + 1));
|
||||||
|
Global.activeOutDevType[ind] = OutContType.DS4;
|
||||||
DS4OutDevice tempDS4 = new DS4OutDevice(vigemTestClient);
|
DS4OutDevice tempDS4 = new DS4OutDevice(vigemTestClient);
|
||||||
outputDevices[ind] = tempDS4;
|
outputDevices[ind] = tempDS4;
|
||||||
int devIndex = ind;
|
int devIndex = ind;
|
||||||
|
Loading…
Reference in New Issue
Block a user