mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-25 10:46:51 +01:00
Merge branch 'jay' of https://github.com/Ryochan7/DS4Windows into jay
This commit is contained in:
commit
2476a3482d
@ -308,22 +308,21 @@ namespace DS4WinWPF.DS4Forms.ViewModels
|
||||
continue;
|
||||
}
|
||||
|
||||
keysdownMap.TryGetValue((int)dc, out bool isdown);
|
||||
int macroValue = Global.macroDS4Values[dc];
|
||||
keysdownMap.TryGetValue(macroValue, out bool isdown);
|
||||
if (!isdown && Mapping.getBoolMapping(0, dc, cState, null, null))
|
||||
{
|
||||
int macroValue = Global.macroDS4Values[dc];
|
||||
MacroStep step = new MacroStep(macroValue, MacroParser.macroInputNames[macroValue],
|
||||
MacroStep.StepType.ActDown, MacroStep.StepOutput.Button);
|
||||
AddMacroStep(step);
|
||||
keysdownMap.Add((int)dc, true);
|
||||
keysdownMap.Add(macroValue, true);
|
||||
}
|
||||
else if (isdown && !Mapping.getBoolMapping(0, dc, cState, null, null))
|
||||
{
|
||||
int macroValue = Global.macroDS4Values[dc];
|
||||
MacroStep step = new MacroStep(macroValue, MacroParser.macroInputNames[macroValue],
|
||||
MacroStep.StepType.ActUp, MacroStep.StepOutput.Button);
|
||||
AddMacroStep(step);
|
||||
keysdownMap.Remove((int)dc);
|
||||
keysdownMap.Remove(macroValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user