Merge branch 'jay' into vigem-udpserver

# Conflicts:
#	DS4Windows/DS4Control/ControlService.cs
This commit is contained in:
Travis Nickles 2018-08-24 17:38:00 -05:00
commit 77af92e722
2 changed files with 7 additions and 2 deletions

View File

@ -1118,7 +1118,11 @@ namespace DS4Windows
lag[ind] = false;
inWarnMonitor[ind] = false;
useDInputOnly[ind] = true;
OnControllerRemoved(this, ind);
uiContext?.Post(new SendOrPostCallback((state) =>
{
OnControllerRemoved(this, ind);
}), null);
//Thread.Sleep(XINPUT_UNPLUG_SETTLE_TIME);
}
}
}

View File

@ -2174,14 +2174,15 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
FormLocationX = Location.X > 0 ? Location.X : 0;
FormLocationY = Location.Y > 0 ? Location.Y : 0;
Global.ControllerRemoved -= ControllerRemovedChange;
if (!string.IsNullOrEmpty(appdatapath))
{
Save();
blankControllerTab();
Program.rootHub.Stop();
}
TaskRunner.Run(() => Program.rootHub.Stop()).Wait();
// Make sure to stop event generation routines. Should fix odd crashes on shutdown
Application.Exit();
}