mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 19:14:20 +01:00
Merge branch 'hold-repeat-macro-fix' of https://github.com/Gorgexpress/DS4Windows into jay
This commit is contained in:
commit
6a3e9ff913
@ -803,7 +803,7 @@ namespace DS4Windows
|
|||||||
keyType += DS4KeyType.Unbound;
|
keyType += DS4KeyType.Unbound;
|
||||||
if (dcs.keyType.HasFlag(DS4KeyType.HoldMacro))
|
if (dcs.keyType.HasFlag(DS4KeyType.HoldMacro))
|
||||||
keyType += DS4KeyType.HoldMacro;
|
keyType += DS4KeyType.HoldMacro;
|
||||||
if (dcs.keyType.HasFlag(DS4KeyType.Macro))
|
else if (dcs.keyType.HasFlag(DS4KeyType.Macro))
|
||||||
keyType += DS4KeyType.Macro;
|
keyType += DS4KeyType.Macro;
|
||||||
if (dcs.keyType.HasFlag(DS4KeyType.Toggle))
|
if (dcs.keyType.HasFlag(DS4KeyType.Toggle))
|
||||||
keyType += DS4KeyType.Toggle;
|
keyType += DS4KeyType.Toggle;
|
||||||
|
@ -454,7 +454,7 @@ namespace DS4Windows
|
|||||||
lBMacroOn.Visible = true;
|
lBMacroOn.Visible = true;
|
||||||
foreach (int i in tag)
|
foreach (int i in tag)
|
||||||
macrostag.Add(i);
|
macrostag.Add(i);
|
||||||
if (Global.GetDS4KeyType(device, button.Name, rBShiftModifer.Checked).HasFlag(DS4KeyType.RepeatMacro))
|
if (Global.GetDS4KeyType(device, button.Name, rBShiftModifer.Checked).HasFlag(DS4KeyType.HoldMacro))
|
||||||
macrorepeat = true;
|
macrorepeat = true;
|
||||||
}
|
}
|
||||||
else if (tagO is string || tagO is X360Controls)
|
else if (tagO is string || tagO is X360Controls)
|
||||||
|
@ -1082,7 +1082,7 @@ namespace DS4Windows
|
|||||||
if (SC) kt |= DS4KeyType.ScanCode;
|
if (SC) kt |= DS4KeyType.ScanCode;
|
||||||
if (TG) kt |= DS4KeyType.Toggle;
|
if (TG) kt |= DS4KeyType.Toggle;
|
||||||
if (MC) kt |= DS4KeyType.Macro;
|
if (MC) kt |= DS4KeyType.Macro;
|
||||||
if (MR) kt |= DS4KeyType.RepeatMacro;
|
if (MR) kt |= DS4KeyType.HoldMacro;
|
||||||
UpdateDS4CSetting(device, ctrl.Name, shift, tag.Key, tag.Value, kt, sTrigger);
|
UpdateDS4CSetting(device, ctrl.Name, shift, tag.Key, tag.Value, kt, sTrigger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -784,8 +784,7 @@ namespace DS4Windows
|
|||||||
kbm.macrostag = macros;
|
kbm.macrostag = macros;
|
||||||
kbm.macros = macronames;
|
kbm.macros = macronames;
|
||||||
kbm.lBMacroOn.Visible = true;
|
kbm.lBMacroOn.Visible = true;
|
||||||
if (cBStyle.SelectedIndex == 1)
|
kbm.macrorepeat = cBStyle.SelectedIndex == 1;
|
||||||
kbm.macrorepeat = true;
|
|
||||||
saved = true;
|
saved = true;
|
||||||
if (sender != kbm)
|
if (sender != kbm)
|
||||||
kbm.Close();
|
kbm.Close();
|
||||||
@ -796,8 +795,7 @@ namespace DS4Windows
|
|||||||
sA.macros = macronames;
|
sA.macros = macronames;
|
||||||
sA.lbMacroRecorded.Text = string.Join(", ", macronames);
|
sA.lbMacroRecorded.Text = string.Join(", ", macronames);
|
||||||
//kbm.lBMacroOn.Visible = true;
|
//kbm.lBMacroOn.Visible = true;
|
||||||
if (cBStyle.SelectedIndex == 1)
|
sA.macrorepeat = cBStyle.SelectedIndex == 1;
|
||||||
sA.macrorepeat = true;
|
|
||||||
saved = true;
|
saved = true;
|
||||||
//if (sender != sA)
|
//if (sender != sA)
|
||||||
// sA.Close();
|
// sA.Close();
|
||||||
|
Loading…
Reference in New Issue
Block a user