From 1bf4642c0943f1d911522b63147027670883605a Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 25 Oct 2019 02:08:48 -0500 Subject: [PATCH] Change hotplug routine in sync handler --- DS4Windows/DS4Control/ControlService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index 0fe05b1..afe4919 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -1122,6 +1122,7 @@ namespace DS4Windows outputDevices[ind] = null; useDInputOnly[ind] = true; LogDebug(tempType + " Controller #" + (ind + 1) + " unplugged"); + Global.activeOutDevType[ind] = OutContType.None; } } else @@ -1132,6 +1133,7 @@ namespace DS4Windows if (conType == OutContType.X360) { LogDebug("Plugging in X360 Controller #" + (ind + 1)); + Global.activeOutDevType[ind] = OutContType.X360; Xbox360OutDevice tempXbox = new Xbox360OutDevice(vigemTestClient); outputDevices[ind] = tempXbox; tempXbox.cont.FeedbackReceived += (eventsender, args) => @@ -1145,6 +1147,7 @@ namespace DS4Windows else if (conType == OutContType.DS4) { LogDebug("Plugging in DS4 Controller #" + (ind + 1)); + Global.activeOutDevType[ind] = OutContType.DS4; DS4OutDevice tempDS4 = new DS4OutDevice(vigemTestClient); outputDevices[ind] = tempDS4; int devIndex = ind;