Fix checking for temp controller type

This commit is contained in:
Travis Nickles 2019-10-10 03:28:46 -05:00
parent 78ef0fcd9d
commit 68c29a2f8a
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,7 @@ namespace DS4Windows.Forms
//pnl360Controls.BackgroundImage = null;
//pnl360Controls.BackgroundImageLayout = ImageLayout.None;
use360 = true;
device = deviceNum;
pnl360Controls.Paint -= pnl360Controls_Paint;
if (Global.outDevTypeTemp[device] == OutContType.DS4)
{
@ -49,7 +50,6 @@ namespace DS4Windows.Forms
pnlDS4Controls.Show();
}
device = deviceNum;
ops = ooo;
button = buton;
DS4ControlSettings dcs = Global.getDS4CSetting(device, button.Name);

View File

@ -1005,6 +1005,7 @@ namespace DS4Windows.Forms
if (idxSASteeringWheelEmulationRange >= 0) cBSteeringWheelEmulationRange.SelectedIndex = idxSASteeringWheelEmulationRange;
OutContType tempOutType = Global.OutContType[device];
Global.outDevTypeTemp[device] = tempOutType;
devOutContType = tempOutType;
switch(tempOutType)
{
@ -1190,6 +1191,8 @@ namespace DS4Windows.Forms
gyroMStickUseSmoothCk.Checked = false;
gyroMStickSmoothWeightNUD.Enabled = false;
gyroMStickSmoothWeightNUD.Value = 0.5m;
Global.outDevTypeTemp[device] = OutContType.X360;
devOutContType = OutContType.X360;
Set();
}
@ -3638,6 +3641,7 @@ namespace DS4Windows.Forms
default: break;
}
Global.outDevTypeTemp[device] = tempType;
devOutContType = tempType;
UpdateLists();
}