Version 1.4.0.61

bug fix for dinput mode making multiple 360 controllers
This commit is contained in:
jays2kings 2014-09-14 22:52:21 -04:00
parent c5f49cc7f2
commit 9b65de10ad
3 changed files with 8 additions and 4 deletions

View File

@ -142,6 +142,7 @@ namespace DS4Control
}
if (anyUnplugged)
System.Threading.Thread.Sleep(XINPUT_UNPLUG_SETTLE_TIME);
x360Bus.UnplugAll();
x360Bus.Stop();
if (showlog)
LogDebug(Properties.Resources.StoppingDS4);

View File

@ -1373,8 +1373,11 @@ namespace DS4Control
{
Item = m_Xdoc.SelectSingleNode("/ScpControl/DinputOnly");
Boolean.TryParse(Item.InnerText, out dinputOnly[device]);
if (dinputOnly[device] == true) control.x360Bus.Unplug(device);
else control.x360Bus.Plugin(device);
if (device < 4)
{
if (dinputOnly[device] == true) control.x360Bus.Unplug(device);
else if (control.DS4Controllers[device].IsAlive()) control.x360Bus.Plugin(device);
}
}
catch { missingSetting = true; }
try

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.6")]
[assembly: AssemblyFileVersion("1.4.0.6")]
[assembly: AssemblyVersion("1.4.0.61")]
[assembly: AssemblyFileVersion("1.4.0.61")]