mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-26 16:41:50 +01:00
Fix checking for temp controller type
This commit is contained in:
parent
78ef0fcd9d
commit
68c29a2f8a
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user