mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-13 16:49:08 +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.BackgroundImage = null;
|
||||||
//pnl360Controls.BackgroundImageLayout = ImageLayout.None;
|
//pnl360Controls.BackgroundImageLayout = ImageLayout.None;
|
||||||
use360 = true;
|
use360 = true;
|
||||||
|
device = deviceNum;
|
||||||
pnl360Controls.Paint -= pnl360Controls_Paint;
|
pnl360Controls.Paint -= pnl360Controls_Paint;
|
||||||
if (Global.outDevTypeTemp[device] == OutContType.DS4)
|
if (Global.outDevTypeTemp[device] == OutContType.DS4)
|
||||||
{
|
{
|
||||||
@ -49,7 +50,6 @@ namespace DS4Windows.Forms
|
|||||||
pnlDS4Controls.Show();
|
pnlDS4Controls.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
device = deviceNum;
|
|
||||||
ops = ooo;
|
ops = ooo;
|
||||||
button = buton;
|
button = buton;
|
||||||
DS4ControlSettings dcs = Global.getDS4CSetting(device, button.Name);
|
DS4ControlSettings dcs = Global.getDS4CSetting(device, button.Name);
|
||||||
|
@ -1005,6 +1005,7 @@ namespace DS4Windows.Forms
|
|||||||
if (idxSASteeringWheelEmulationRange >= 0) cBSteeringWheelEmulationRange.SelectedIndex = idxSASteeringWheelEmulationRange;
|
if (idxSASteeringWheelEmulationRange >= 0) cBSteeringWheelEmulationRange.SelectedIndex = idxSASteeringWheelEmulationRange;
|
||||||
|
|
||||||
OutContType tempOutType = Global.OutContType[device];
|
OutContType tempOutType = Global.OutContType[device];
|
||||||
|
Global.outDevTypeTemp[device] = tempOutType;
|
||||||
devOutContType = tempOutType;
|
devOutContType = tempOutType;
|
||||||
switch(tempOutType)
|
switch(tempOutType)
|
||||||
{
|
{
|
||||||
@ -1190,6 +1191,8 @@ namespace DS4Windows.Forms
|
|||||||
gyroMStickUseSmoothCk.Checked = false;
|
gyroMStickUseSmoothCk.Checked = false;
|
||||||
gyroMStickSmoothWeightNUD.Enabled = false;
|
gyroMStickSmoothWeightNUD.Enabled = false;
|
||||||
gyroMStickSmoothWeightNUD.Value = 0.5m;
|
gyroMStickSmoothWeightNUD.Value = 0.5m;
|
||||||
|
Global.outDevTypeTemp[device] = OutContType.X360;
|
||||||
|
devOutContType = OutContType.X360;
|
||||||
|
|
||||||
Set();
|
Set();
|
||||||
}
|
}
|
||||||
@ -3638,6 +3641,7 @@ namespace DS4Windows.Forms
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Global.outDevTypeTemp[device] = tempType;
|
||||||
devOutContType = tempType;
|
devOutContType = tempType;
|
||||||
UpdateLists();
|
UpdateLists();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user