mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-18 08:56:20 +01:00
Use input field mapping instead of output field mapping for refactor
This commit is contained in:
parent
dd96beafbe
commit
09103dcea8
@ -1368,13 +1368,13 @@ namespace DS4Windows
|
|||||||
int controlNum = (int)dcs.control;
|
int controlNum = (int)dcs.control;
|
||||||
if (xboxControl == X360Controls.LT || xboxControl == X360Controls.RT)
|
if (xboxControl == X360Controls.LT || xboxControl == X360Controls.RT)
|
||||||
{
|
{
|
||||||
byte axisMapping = getByteMapping2(device, dcs.control, cState, eState, tp, outputfieldMapping);
|
byte axisMapping = getByteMapping2(device, dcs.control, cState, eState, tp, fieldMapping);
|
||||||
if (axisMapping != 0)
|
if (axisMapping != 0)
|
||||||
outputfieldMapping.triggers[(int)tempDS4Control] = axisMapping;
|
outputfieldMapping.triggers[(int)tempDS4Control] = axisMapping;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bool value = getBoolMapping2(device, dcs.control, cState, eState, tp, outputfieldMapping);
|
bool value = getBoolMapping2(device, dcs.control, cState, eState, tp, fieldMapping);
|
||||||
outputfieldMapping.buttons[(int)tempDS4Control] = value;
|
outputfieldMapping.buttons[(int)tempDS4Control] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user